mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Register tg:// scheme on initial launch.
This commit is contained in:
parent
3947056654
commit
8cbeadc68a
1 changed files with 7 additions and 2 deletions
|
@ -261,9 +261,14 @@ void Application::run() {
|
|||
|
||||
refreshGlobalProxy(); // Depends on app settings being read.
|
||||
|
||||
if (const auto old = Local::oldSettingsVersion(); old < AppVersion) {
|
||||
if (const auto old = Local::oldSettingsVersion()) {
|
||||
if (old < AppVersion) {
|
||||
InvokeQueued(this, [] { RegisterUrlScheme(); });
|
||||
Platform::NewVersionLaunched(old);
|
||||
}
|
||||
} else {
|
||||
// Initial launch.
|
||||
InvokeQueued(this, [] { RegisterUrlScheme(); });
|
||||
Platform::NewVersionLaunched(old);
|
||||
}
|
||||
|
||||
if (cAutoStart() && !Platform::AutostartSupported()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue