mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use static version map for autoupdates.
This commit is contained in:
@@ -24,6 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "mtproto/mtp_instance.h"
|
||||
#include "mtproto/dc_options.h"
|
||||
#include "core/file_utilities.h"
|
||||
#include "core/update_checker.h"
|
||||
#include "window/themes/window_theme.h"
|
||||
#include "window/themes/window_theme_editor.h"
|
||||
#include "media/media_audio_track.h"
|
||||
@@ -47,6 +48,9 @@ void fillCodes() {
|
||||
Messenger::Instance().onSwitchTestMode();
|
||||
}));
|
||||
});
|
||||
Codes.insert(qsl("testupdate"), [] {
|
||||
Core::UpdateChecker().test();
|
||||
});
|
||||
Codes.insert(qsl("loadlang"), [] {
|
||||
Lang::CurrentCloudManager().switchToLanguage(qsl("custom"));
|
||||
});
|
||||
|
Reference in New Issue
Block a user