Automatic action in RadioBox after saving

This commit is contained in:
Eric Kotato 2020-05-05 06:51:04 +03:00
parent 1ec8763b63
commit 8295f805c8
2 changed files with 2 additions and 3 deletions

View file

@ -91,6 +91,7 @@ void RadioBox::save() {
if (_warnRestart) {
const auto saveAfterWarn = [=] {
_saveCallback(_group->value());
App::restart();
};
const auto box = std::make_shared<QPointer<BoxContent>>();
@ -103,6 +104,7 @@ void RadioBox::save() {
saveAfterWarn));
} else {
_saveCallback(_group->value());
closeBox();
}
}

View file

@ -253,7 +253,6 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
[=] (int value) {
cSetUserpicCornersType(value);
::Kotato::JsonSettings::Write();
App::restart();
}, true));
});
@ -325,7 +324,6 @@ void SetupKotatoNetwork(not_null<Ui::VerticalLayout*> container) {
[=] (int value) {
SetNetworkBoost(value);
::Kotato::JsonSettings::Write();
App::restart();
}, true));
});
@ -377,7 +375,6 @@ void SetupKotatoSystem(not_null<Ui::VerticalLayout*> container) {
[=] (int value) {
cSetCustomAppIcon(value);
::Kotato::JsonSettings::Write();
App::restart();
}, true));
});