Skip to content

Commit

Permalink
[foilnotes] Fixed the criteria for starting the lock timer
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Dec 15, 2024
1 parent 3ecc140 commit bbbdcf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ ApplicationWindow {

function resetAutoLock() {
lockTimer.stop()
if (FoilNotesModel.foilState === FoilNotesModel.FoilNotesReady &&
FoilNotesSettings.autoLock && HarbourSystemState.locked) {
if (FoilNotesModel.keyAvailable && FoilNotesSettings.autoLock && HarbourSystemState.locked) {
lockTimer.start()
}
}
Expand Down

0 comments on commit bbbdcf6

Please sign in to comment.