Install launcher before registering URL scheme

This commit is contained in:
Ilya Fedin 2022-11-27 03:07:04 +04:00 committed by John Preston
parent f18bf46fb1
commit b383dad6ac
2 changed files with 1 additions and 1 deletions

View File

@ -236,6 +236,7 @@ void Application::run() {
refreshGlobalProxy(); // Depends on app settings being read.
if (const auto old = Local::oldSettingsVersion(); old < AppVersion) {
Platform::InstallLauncher();
RegisterUrlScheme();
Platform::NewVersionLaunched(old);
}

View File

@ -867,7 +867,6 @@ bool OpenSystemSettings(SystemSettingsType type) {
}
void NewVersionLaunched(int oldVersion) {
InstallLauncher();
if (oldVersion > 0
&& oldVersion <= 4000002
&& qEnvironmentVariableIsSet("WAYLAND_DISPLAY")