mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Removed App::wnd from classes that have pointer to Window::Controller.
This commit is contained in:
@@ -858,8 +858,8 @@ void Editor::keyPressEvent(QKeyEvent *e) {
|
||||
if (e->key() == Qt::Key_Escape) {
|
||||
if (!_select->getQuery().isEmpty()) {
|
||||
_select->clearQuery();
|
||||
} else if (auto window = App::wnd()) {
|
||||
window->setInnerFocus();
|
||||
} else {
|
||||
_window->widget()->setInnerFocus();
|
||||
}
|
||||
} else if (e->key() == Qt::Key_Down) {
|
||||
_inner->selectSkip(1);
|
||||
@@ -904,10 +904,8 @@ void Editor::closeWithConfirmation() {
|
||||
}
|
||||
|
||||
void Editor::closeEditor() {
|
||||
if (const auto window = App::wnd()) {
|
||||
window->showRightColumn(nullptr);
|
||||
Background()->clearEditingTheme();
|
||||
}
|
||||
_window->widget()->showRightColumn(nullptr);
|
||||
Background()->clearEditingTheme();
|
||||
}
|
||||
|
||||
} // namespace Theme
|
||||
|
Reference in New Issue
Block a user