mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Remove autodark cheat code since there are an UI setting for this
This commit is contained in:
@@ -136,14 +136,6 @@ auto GenerateCodes() {
|
||||
window->showSettings(Settings::Type::Folders);
|
||||
}
|
||||
});
|
||||
codes.emplace(qsl("autodark"), [](SessionController *window) {
|
||||
auto text = Core::App().settings().systemDarkModeEnabled() ? qsl("Disable system dark mode?") : qsl("Enable system dark mode?");
|
||||
Ui::show(Box<ConfirmBox>(text, [=] {
|
||||
Core::App().settings().setSystemDarkModeEnabled(!Core::App().settings().systemDarkModeEnabled());
|
||||
Core::App().saveSettingsDelayed();
|
||||
Ui::hideLayer();
|
||||
}));
|
||||
});
|
||||
codes.emplace(qsl("registertg"), [](SessionController *window) {
|
||||
Platform::RegisterCustomScheme(true);
|
||||
Ui::Toast::Show("Forced custom scheme register.");
|
||||
|
Reference in New Issue
Block a user