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

Move passcode management from MainWindow.

Check for auto lock in AuthSession. Don't autolock while video plays.
Closes #3219
This commit is contained in:
John Preston
2017-04-15 21:48:54 +03:00
parent e3aacc8072
commit de7c886008
14 changed files with 88 additions and 52 deletions

View File

@@ -90,7 +90,6 @@ public:
void setupPasscode();
void clearPasscode();
void checkAutoLockIn(int msec);
void setupIntro();
void setupMain(const MTPUser *user = nullptr);
void serviceNotification(const TextWithEntities &message, const MTPMessageMedia &media = MTP_messageMediaEmpty(), int32 date = 0, bool force = false);
@@ -164,8 +163,6 @@ protected:
void updateControlsGeometry() override;
public slots:
void checkAutoLock();
void showSettings();
void layerHidden();
void setInnerFocus();
@@ -238,9 +235,6 @@ private:
bool _inactivePress = false;
QTimer _inactiveTimer;
SingleTimer _autoLockTimer;
TimeMs _shouldLockAt = 0;
};
class PreLaunchWindow : public TWidget {