mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-06 11:47:58 -05:00
Keep the Run Script dialog in front after its file picker closes on macOS
This commit is contained in:
1 parent
a4dffc92de
commit
58fee96e30
6 files changed
+30
-21
No files matched your search
@@ -1019,16 +1019,6 @@ void PluginsDialog::handle_plugin_menu_action(const std::string& plugin_key, con
|
||||
}
|
||||
}
|
||||
|
||||
void PluginsDialog::restore_z_order()
|
||||
{
|
||||
// Deferred so it runs on a clean stack after the modal has fully torn down; the
|
||||
// alive guard covers the dialog being destroyed while the CallAfter is queued.
|
||||
wxGetApp().CallAfter([this, alive = m_alive]() {
|
||||
if (alive->load(std::memory_order_acquire) && IsShown())
|
||||
Raise();
|
||||
});
|
||||
}
|
||||
|
||||
void PluginsDialog::install_plugin_from_file()
|
||||
{
|
||||
wxFileDialog dialog(this, _L("Select plugin package"), wxEmptyString, wxEmptyString, _L("Plugin files (*.py;*.whl)|*.py;*.whl"),
|
||||
|
||||
Reference in new issue
Block a user