mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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,10 +261,15 @@ void Application::run() {
|
||||||
|
|
||||||
refreshGlobalProxy(); // Depends on app settings being read.
|
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(); });
|
InvokeQueued(this, [] { RegisterUrlScheme(); });
|
||||||
Platform::NewVersionLaunched(old);
|
Platform::NewVersionLaunched(old);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Initial launch.
|
||||||
|
InvokeQueued(this, [] { RegisterUrlScheme(); });
|
||||||
|
}
|
||||||
|
|
||||||
if (cAutoStart() && !Platform::AutostartSupported()) {
|
if (cAutoStart() && !Platform::AutostartSupported()) {
|
||||||
cSetAutoStart(false);
|
cSetAutoStart(false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue