mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 01:52:11 +00:00
MessageDialog is used instead of wxMessageDialog on MSW for supporting of the Light/Dark color mode. But a constructor of the MsgDialog replaces a parent which is equal to nullptr with the MainFrame . That is why non-modal dialog with Preset Settings loses a focus after close of the MessageDialog. "m_msg_dlg_parent" is added to ConfigManipulation class. ConfigManipulation's instance owed by Tab will use the Tab as a parent for MessageDialogs. => The MessageDialog with information about configuration incompatibility will always appear over related SettingsTab and a non-modal dialog with Preset Settings will not lose the focus.