mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Install launcher before registering URL scheme
This commit is contained in:
@@ -236,6 +236,7 @@ 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(); old < AppVersion) {
|
||||||
|
Platform::InstallLauncher();
|
||||||
RegisterUrlScheme();
|
RegisterUrlScheme();
|
||||||
Platform::NewVersionLaunched(old);
|
Platform::NewVersionLaunched(old);
|
||||||
}
|
}
|
||||||
|
@@ -867,7 +867,6 @@ bool OpenSystemSettings(SystemSettingsType type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NewVersionLaunched(int oldVersion) {
|
void NewVersionLaunched(int oldVersion) {
|
||||||
InstallLauncher();
|
|
||||||
if (oldVersion > 0
|
if (oldVersion > 0
|
||||||
&& oldVersion <= 4000002
|
&& oldVersion <= 4000002
|
||||||
&& qEnvironmentVariableIsSet("WAYLAND_DISPLAY")
|
&& qEnvironmentVariableIsSet("WAYLAND_DISPLAY")
|
||||||
|
Reference in New Issue
Block a user