Fixed #9952.
* Delay of the password lock for a few seconds Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
72950e7c15
commit
658491b898
@@ -274,11 +274,14 @@ ScreenBlanker::MessageReceived(BMessage* message)
|
||||
bool
|
||||
ScreenBlanker::QuitRequested()
|
||||
{
|
||||
if (fSettings.LockEnable()
|
||||
&& system_time() - fBlankTime > fSettings.PasswordTime()
|
||||
- fSettings.BlankTime()) {
|
||||
_ShowPasswordWindow();
|
||||
return false;
|
||||
if (fSettings.LockEnable()) {
|
||||
bigtime_t minTime = fSettings.PasswordTime() - fSettings.BlankTime();
|
||||
if (minTime == 0)
|
||||
minTime = 5000000;
|
||||
if (system_time() - fBlankTime > minTime) {
|
||||
_ShowPasswordWindow();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
_Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user