2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix notifications hiding on Linux.

Regression was introduced in 3372dfcd3e.

Only when platform-specific code can give us the global time of the
last user input event we rely on idle time for notifications hiding.

Fixes #5791.
This commit is contained in:
John Preston
2019-03-14 21:59:10 +04:00
parent a5d1fbff98
commit 0df628dc7a
12 changed files with 75 additions and 100 deletions

View File

@@ -205,7 +205,7 @@ void SetupLocalPasscode(not_null<Ui::VerticalLayout*> container) {
Ui::show(Box<PasscodeBox>(true));
});
const auto label = psIdleSupported()
const auto label = Platform::LastUserInputTimeSupported()
? lng_passcode_autolock_away
: lng_passcode_autolock_inactive;
auto value = PasscodeChanges(