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) {
|
if (_warnRestart) {
|
||||||
const auto saveAfterWarn = [=] {
|
const auto saveAfterWarn = [=] {
|
||||||
_saveCallback(_group->value());
|
_saveCallback(_group->value());
|
||||||
|
App::restart();
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto box = std::make_shared<QPointer<BoxContent>>();
|
const auto box = std::make_shared<QPointer<BoxContent>>();
|
||||||
|
|
@ -103,6 +104,7 @@ void RadioBox::save() {
|
||||||
saveAfterWarn));
|
saveAfterWarn));
|
||||||
} else {
|
} else {
|
||||||
_saveCallback(_group->value());
|
_saveCallback(_group->value());
|
||||||
|
closeBox();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,6 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
|
||||||
[=] (int value) {
|
[=] (int value) {
|
||||||
cSetUserpicCornersType(value);
|
cSetUserpicCornersType(value);
|
||||||
::Kotato::JsonSettings::Write();
|
::Kotato::JsonSettings::Write();
|
||||||
App::restart();
|
|
||||||
}, true));
|
}, true));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -325,7 +324,6 @@ void SetupKotatoNetwork(not_null<Ui::VerticalLayout*> container) {
|
||||||
[=] (int value) {
|
[=] (int value) {
|
||||||
SetNetworkBoost(value);
|
SetNetworkBoost(value);
|
||||||
::Kotato::JsonSettings::Write();
|
::Kotato::JsonSettings::Write();
|
||||||
App::restart();
|
|
||||||
}, true));
|
}, true));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -377,7 +375,6 @@ void SetupKotatoSystem(not_null<Ui::VerticalLayout*> container) {
|
||||||
[=] (int value) {
|
[=] (int value) {
|
||||||
cSetCustomAppIcon(value);
|
cSetCustomAppIcon(value);
|
||||||
::Kotato::JsonSettings::Write();
|
::Kotato::JsonSettings::Write();
|
||||||
App::restart();
|
|
||||||
}, true));
|
}, true));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue