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

Integrate GApplication with QFileOpenEvent and Core::Application::activate

This commit is contained in:
Ilya Fedin
2023-05-27 17:49:43 +04:00
committed by John Preston
parent 54841de991
commit 6aef6d7f4e
3 changed files with 31 additions and 39 deletions

View File

@@ -263,6 +263,7 @@ public:
// Internal links.
void checkStartUrl();
void checkSendPaths();
void checkFileOpen();
bool openLocalUrl(const QString &url, QVariant context);
bool openInternalUrl(const QString &url, QVariant context);
[[nodiscard]] QString changelogLink() const;
@@ -437,6 +438,9 @@ private:
crl::time _shouldLockAt = 0;
base::Timer _autoLockTimer;
QStringList _filesToOpen;
base::Timer _fileOpenTimer;
std::optional<base::Timer> _saveSettingsTimer;
struct LeaveFilter {