mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed Ui::show from Settings::SessionsContent.
This commit is contained in:
parent
78f7ea0c9d
commit
ca7f4ffed9
1 changed files with 8 additions and 8 deletions
|
@ -823,13 +823,13 @@ void SessionsContent::terminate(Fn<void()> terminateRequest, QString message) {
|
||||||
}
|
}
|
||||||
terminateRequest();
|
terminateRequest();
|
||||||
});
|
});
|
||||||
_terminateBox = Ui::show(
|
auto box = Box<Ui::ConfirmBox>(
|
||||||
Box<Ui::ConfirmBox>(
|
message,
|
||||||
message,
|
tr::lng_settings_reset_button(tr::now),
|
||||||
tr::lng_settings_reset_button(tr::now),
|
st::attentionBoxButton,
|
||||||
st::attentionBoxButton,
|
callback);
|
||||||
callback),
|
_terminateBox = Ui::MakeWeak(box.data());
|
||||||
Ui::LayerOption::KeepOther);
|
_controller->show(std::move(box), Ui::LayerOption::KeepOther);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SessionsContent::terminateOne(uint64 hash) {
|
void SessionsContent::terminateOne(uint64 hash) {
|
||||||
|
@ -911,7 +911,7 @@ void SessionsContent::Inner::setupContent() {
|
||||||
rename->moveToRight(x, y, outer.width());
|
rename->moveToRight(x, y, outer.width());
|
||||||
}, rename->lifetime());
|
}, rename->lifetime());
|
||||||
rename->setClickedCallback([=] {
|
rename->setClickedCallback([=] {
|
||||||
Ui::show(Box(RenameBox), Ui::LayerOption::KeepOther);
|
_controller->show(Box(RenameBox), Ui::LayerOption::KeepOther);
|
||||||
});
|
});
|
||||||
|
|
||||||
const auto session = &_controller->session();
|
const auto session = &_controller->session();
|
||||||
|
|
Loading…
Add table
Reference in a new issue