mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-20 08:07:09 +02:00
Remove autodark cheat code since there are an UI setting for this
This commit is contained in:
parent
60f91ebce4
commit
3bd34fcff0
1 changed files with 0 additions and 8 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Reference in a new issue