mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Have a global Core::Launcher accessor
This allows to use Launcher in code executing before Sandbox is created
This commit is contained in:
@@ -32,6 +32,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "window/window_session_controller.h"
|
||||
#include "lang/lang_keys.h"
|
||||
#include "core/update_checker.h"
|
||||
#include "core/launcher.h"
|
||||
#include "core/application.h"
|
||||
#include "tray.h"
|
||||
#include "storage/localstorage.h"
|
||||
@@ -224,7 +225,7 @@ void SetupUpdate(
|
||||
return (toggled != cInstallBetaVersion());
|
||||
}) | rpl::start_with_next([=](bool toggled) {
|
||||
cSetInstallBetaVersion(toggled);
|
||||
Core::App().writeInstallBetaVersionsSetting();
|
||||
Core::Launcher::Instance().writeInstallBetaVersionsSetting();
|
||||
|
||||
Core::UpdateChecker checker;
|
||||
checker.stop();
|
||||
|
Reference in New Issue
Block a user