mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Refactored counting idle time.
- psIdleTime() was replaced with Platform::LastUserInputTime(). - _lastTimeVideoPlayedAt was moved to Application as _lastNonIdleTime. - Call of updateNonIdle() was added while voice is recording. - Fixed #5695. - Thanks Preston. =)
This commit is contained in:
@@ -207,10 +207,6 @@ bool psIdleSupported() {
|
||||
return false;
|
||||
}
|
||||
|
||||
crl::time psIdleTime() {
|
||||
return crl::now() - _lastUserAction;
|
||||
}
|
||||
|
||||
void psActivateProcess(uint64 pid) {
|
||||
// objc_activateProgram();
|
||||
}
|
||||
@@ -449,6 +445,10 @@ bool OpenSystemSettings(SystemSettingsType type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
crl::time LastUserInputTime() {
|
||||
return _lastUserAction;
|
||||
}
|
||||
|
||||
namespace ThirdParty {
|
||||
|
||||
void start() {
|
||||
|
@@ -33,6 +33,8 @@ inline void ReInitOnTopPanel(QWidget *panel) {
|
||||
|
||||
QString CurrentExecutablePath(int argc, char *argv[]);
|
||||
|
||||
crl::time LastUserInputTime();
|
||||
|
||||
} // namespace Platform
|
||||
|
||||
inline QString psServerPrefix() {
|
||||
@@ -51,7 +53,6 @@ void psDeleteDir(const QString &dir);
|
||||
|
||||
void psUserActionDone();
|
||||
bool psIdleSupported();
|
||||
crl::time psIdleTime();
|
||||
|
||||
QStringList psInitLogs();
|
||||
void psClearInitLogs();
|
||||
|
Reference in New Issue
Block a user