mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-26 09:24:19 +01:00
Focus filter LineEdit after Theme Type dialog popup
This commit is contained in:
parent
bf8cbda6f6
commit
c0010ad0f1
@ -1939,7 +1939,6 @@ ThemeItemEditorDialog::ThemeItemEditorDialog() {
|
|||||||
|
|
||||||
void ThemeTypeDialog::_dialog_about_to_show() {
|
void ThemeTypeDialog::_dialog_about_to_show() {
|
||||||
add_type_filter->set_text("");
|
add_type_filter->set_text("");
|
||||||
add_type_filter->grab_focus();
|
|
||||||
|
|
||||||
_update_add_type_options();
|
_update_add_type_options();
|
||||||
}
|
}
|
||||||
@ -2019,14 +2018,13 @@ void ThemeTypeDialog::_notification(int p_what) {
|
|||||||
connect("about_to_show", this, "_dialog_about_to_show");
|
connect("about_to_show", this, "_dialog_about_to_show");
|
||||||
FALLTHROUGH;
|
FALLTHROUGH;
|
||||||
}
|
}
|
||||||
|
|
||||||
case NOTIFICATION_THEME_CHANGED: {
|
case NOTIFICATION_THEME_CHANGED: {
|
||||||
_update_add_type_options();
|
_update_add_type_options();
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
case NOTIFICATION_POST_POPUP: {
|
||||||
if (is_visible()) {
|
add_type_filter->grab_focus();
|
||||||
add_type_filter->grab_focus();
|
|
||||||
}
|
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user