Skip to content

Commit

Permalink
[nemo-qml-plugin-devicelock] Change default device lock timeout to im…
Browse files Browse the repository at this point in the history
…mediate. Fixes JB#39585

Default value is used only if device lock settings have not yet been
written e.i. during first boot.
  • Loading branch information
rainemak committed Sep 11, 2017
1 parent 19a93a3 commit c83cb94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nemo-devicelock/private/settingswatcher.cpp
Expand Up @@ -81,7 +81,7 @@ SettingsWatcher *SettingsWatcher::sharedInstance = nullptr;

SettingsWatcher::SettingsWatcher(QObject *parent)
: QSocketNotifier(inotify_init(), Read, parent)
, automaticLocking(10)
, automaticLocking(0)
, minimumLength(5)
, maximumLength(42)
, maximumAttempts(-1)
Expand Down Expand Up @@ -253,7 +253,7 @@ void SettingsWatcher::reloadSettings()
GKeyFile * const settings = g_key_file_new();
g_key_file_load_from_file(settings, m_settingsPath.toUtf8().constData(), G_KEY_FILE_NONE, 0);

read(settings, this, automaticLockingKey, 5, &automaticLocking, &SettingsWatcher::automaticLockingChanged);
read(settings, this, automaticLockingKey, 0, &automaticLocking, &SettingsWatcher::automaticLockingChanged);
read(settings, this, minimumLengthKey, 5, &minimumLength, &SettingsWatcher::minimumLengthChanged);
read(settings, this, maximumLengthKey, 42, &maximumLength, &SettingsWatcher::maximumLengthChanged);
read(settings, this, maximumAttemptsKey, -1, &maximumAttempts, &SettingsWatcher::maximumAttemptsChanged);
Expand Down

0 comments on commit c83cb94

Please sign in to comment.