diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-10-18 23:28:11 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-10-18 23:28:11 +0200 |
commit | 567db2ecb2aa6fb4cacf1cc1e8a29676a45e7a12 (patch) | |
tree | 86409f16abf17a7a79d582ec835b708b2bb97fd9 /editor/import_dock.cpp | |
parent | 80f0b33313dae52d072ba2771a88ebcc4f0b4d6d (diff) | |
download | redot-engine-567db2ecb2aa6fb4cacf1cc1e8a29676a45e7a12.tar.gz |
Don't swap Advanced Import Settings button position based on Swap OK Cancel
The "Advanced..." and "Reimport" buttons are not OK/Cancel buttons,
so they shouldn't be swapped according to the editor setting (which
itself is determined depending on the OS by default).
Diffstat (limited to 'editor/import_dock.cpp')
-rw-r--r-- | editor/import_dock.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 14065abf73..6c22a965ae 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -790,23 +790,14 @@ ImportDock::ImportDock() { import->set_text(TTR("Reimport")); import->set_disabled(true); import->connect(SceneStringName(pressed), callable_mp(this, &ImportDock::_reimport_pressed)); - if (!DisplayServer::get_singleton()->get_swap_cancel_ok()) { - advanced_spacer = hb->add_spacer(); - advanced = memnew(Button); - advanced->set_text(TTR("Advanced...")); - hb->add_child(advanced); - } + advanced_spacer = hb->add_spacer(); + advanced = memnew(Button); + advanced->set_text(TTR("Advanced...")); + hb->add_child(advanced); hb->add_spacer(); hb->add_child(import); hb->add_spacer(); - if (DisplayServer::get_singleton()->get_swap_cancel_ok()) { - advanced = memnew(Button); - advanced->set_text(TTR("Advanced...")); - hb->add_child(advanced); - advanced_spacer = hb->add_spacer(); - } - advanced->hide(); advanced_spacer->hide(); advanced->connect(SceneStringName(pressed), callable_mp(this, &ImportDock::_advanced_options)); |