Automatic action in RadioBox after saving
This commit is contained in:
parent
1ec8763b63
commit
8295f805c8
2 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue