Remove autodark cheat code since there are an UI setting for this

This commit is contained in:
Ilya Fedin 2020-11-01 03:29:02 +04:00 committed by John Preston
parent 60f91ebce4
commit 3bd34fcff0

View file

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