mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Refactored checking of last input while notifications are displayed.
- Removed condition for Windows platform only. - Added smooth hiding of notifications in case video is watched or voice message is recorded. - psUserActionDone() was completely replaced with Core::App().updateNonIdle().
This commit is contained in:
@@ -193,16 +193,6 @@ void psDeleteDir(const QString &dir) {
|
||||
_removeDirectory(dir);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
auto _lastUserAction = 0LL;
|
||||
|
||||
} // namespace
|
||||
|
||||
void psUserActionDone() {
|
||||
_lastUserAction = crl::now();
|
||||
}
|
||||
|
||||
bool psIdleSupported() {
|
||||
return false;
|
||||
}
|
||||
@@ -446,7 +436,7 @@ bool OpenSystemSettings(SystemSettingsType type) {
|
||||
}
|
||||
|
||||
crl::time LastUserInputTime() {
|
||||
return _lastUserAction;
|
||||
return 0LL;
|
||||
}
|
||||
|
||||
namespace ThirdParty {
|
||||
|
@@ -51,7 +51,6 @@ void psWriteDump();
|
||||
|
||||
void psDeleteDir(const QString &dir);
|
||||
|
||||
void psUserActionDone();
|
||||
bool psIdleSupported();
|
||||
|
||||
QStringList psInitLogs();
|
||||
|
Reference in New Issue
Block a user