2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Detach ComposeControls from SessionController.

This commit is contained in:
John Preston
2023-05-02 13:33:19 +04:00
parent 665467b02d
commit 65afa2c402
178 changed files with 2080 additions and 1869 deletions

View File

@@ -846,7 +846,7 @@ void SessionsContent::terminate(Fn<void()> terminateRequest, QString message) {
.confirmStyle = &st::attentionBoxButton,
});
_terminateBox = Ui::MakeWeak(box.data());
_controller->show(std::move(box), Ui::LayerOption::KeepOther);
_controller->show(std::move(box));
}
void SessionsContent::terminateOne(uint64 hash) {
@@ -928,7 +928,7 @@ void SessionsContent::Inner::setupContent() {
rename->moveToRight(x, y, outer.width());
}, rename->lifetime());
rename->setClickedCallback([=] {
_controller->show(Box(RenameBox), Ui::LayerOption::KeepOther);
_controller->show(Box(RenameBox));
});
const auto session = &_controller->session();