2
0
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:
John Preston
2018-04-27 17:08:04 +04:00
parent 993cb987a6
commit 48e913bf2c
7 changed files with 190 additions and 32 deletions

View File

@@ -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"));
});