2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Provide old version to Platform::NewVersionLaunched

This commit is contained in:
Ilya Fedin
2022-09-01 10:44:23 +04:00
committed by John Preston
parent e20840b4d4
commit 5fc7caeec9
8 changed files with 27 additions and 33 deletions

View File

@@ -233,9 +233,9 @@ void Application::run() {
refreshGlobalProxy(); // Depends on app settings being read.
if (Local::oldSettingsVersion() < AppVersion) {
if (const auto old = Local::oldSettingsVersion(); old < AppVersion) {
RegisterUrlScheme();
psNewVersion();
Platform::NewVersionLaunched(old);
}
if (cAutoStart() && !Platform::AutostartSupported()) {