mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Remove some App::wnd() calls.
This commit is contained in:
@@ -1591,8 +1591,8 @@ void MainWidget::ui_showPeerHistory(
|
||||
animationParams);
|
||||
} else {
|
||||
_history->show();
|
||||
crl::on_main(App::wnd(), [] {
|
||||
App::wnd()->setInnerFocus();
|
||||
crl::on_main(this, [=] {
|
||||
_controller->widget()->setInnerFocus();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1948,11 +1948,10 @@ void MainWidget::showBackFromStack(
|
||||
|
||||
if (selectingPeer()) {
|
||||
return;
|
||||
}
|
||||
if (_stack.empty()) {
|
||||
} else if (_stack.empty()) {
|
||||
_controller->clearSectionStack(params);
|
||||
crl::on_main(App::wnd(), [] {
|
||||
App::wnd()->setInnerFocus();
|
||||
crl::on_main(this, [=] {
|
||||
_controller->widget()->setInnerFocus();
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -2236,7 +2235,7 @@ void MainWidget::showAll() {
|
||||
updateControlsGeometry();
|
||||
floatPlayerCheckVisibility();
|
||||
|
||||
App::wnd()->checkHistoryActivation();
|
||||
_controller->widget()->checkHistoryActivation();
|
||||
}
|
||||
|
||||
void MainWidget::resizeEvent(QResizeEvent *e) {
|
||||
@@ -2720,7 +2719,7 @@ void MainWidget::activate() {
|
||||
} else if (!_mainSection) {
|
||||
if (_hider) {
|
||||
_dialogs->setInnerFocus();
|
||||
} else if (App::wnd() && !Ui::isLayerShown()) {
|
||||
} else if (!Ui::isLayerShown()) {
|
||||
if (!cSendPaths().isEmpty()) {
|
||||
const auto interpret = qstr("interpret://");
|
||||
const auto path = cSendPaths()[0];
|
||||
@@ -2742,7 +2741,7 @@ void MainWidget::activate() {
|
||||
}
|
||||
}
|
||||
}
|
||||
App::wnd()->fixOrder();
|
||||
_controller->widget()->fixOrder();
|
||||
}
|
||||
|
||||
bool MainWidget::isActive() const {
|
||||
|
Reference in New Issue
Block a user