mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Provide old version to Platform::NewVersionLaunched
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user