mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Removed Ui::show from classes that have pointer to Controller.
This commit is contained in:
@@ -68,7 +68,7 @@ bool ShowStickerSet(
|
||||
return false;
|
||||
}
|
||||
Core::App().hideMediaView();
|
||||
Ui::show(Box<StickerSetBox>(
|
||||
controller->show(Box<StickerSetBox>(
|
||||
controller,
|
||||
MTP_inputStickerSetShortName(MTP_string(match->captured(1)))));
|
||||
return true;
|
||||
@@ -368,7 +368,7 @@ bool ResolveSettings(
|
||||
}
|
||||
if (section == qstr("devices")) {
|
||||
controller->session().api().authorizations().reload();
|
||||
Ui::show(Box<SessionsBox>(&controller->session()));
|
||||
controller->show(Box<SessionsBox>(&controller->session()));
|
||||
return true;
|
||||
} else if (section == qstr("language")) {
|
||||
ShowLanguagesBox();
|
||||
@@ -401,12 +401,12 @@ bool HandleUnknown(
|
||||
Core::UpdateApplication();
|
||||
close();
|
||||
};
|
||||
Ui::show(Box<ConfirmBox>(
|
||||
controller->show(Box<ConfirmBox>(
|
||||
text,
|
||||
tr::lng_menu_update(tr::now),
|
||||
callback));
|
||||
} else {
|
||||
Ui::show(Box<InformBox>(text));
|
||||
controller->show(Box<InformBox>(text));
|
||||
}
|
||||
});
|
||||
controller->session().api().requestDeepLinkInfo(request, callback);
|
||||
|
Reference in New Issue
Block a user