2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Move autolock checking to Core::Application.

This commit is contained in:
John Preston
2020-06-08 19:56:52 +04:00
parent 4b354b0928
commit 27af83267e
9 changed files with 63 additions and 62 deletions

View File

@@ -199,6 +199,10 @@ public:
rpl::producer<bool> lockChanges() const;
rpl::producer<bool> lockValue() const;
void checkAutoLock();
void checkAutoLockIn(crl::time time);
void localPasscodeChanged();
[[nodiscard]] crl::time lastNonIdleTime() const;
void updateNonIdle();
@@ -288,6 +292,9 @@ private:
rpl::event_stream<bool> _termsLockChanges;
std::unique_ptr<Window::TermsLock> _termsLock;
crl::time _shouldLockAt = 0;
base::Timer _autoLockTimer;
base::Timer _saveSettingsTimer;
struct LeaveSubscription {