mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix macro dock being being destroyed when opening macro settings
This commit is contained in:
parent
7478c149b3
commit
be809dbfab
|
|
@ -478,7 +478,14 @@ bool MacroSettingsDialog::AskForSettings(QWidget *parent,
|
|||
macro->SetSkipExecOnStart(dialog._currentSkipOnStartup->isChecked());
|
||||
macro->SetStopActionsIfNotDone(
|
||||
dialog._currentStopActionsIfNotDone->isChecked());
|
||||
macro->EnableDock(dialog._currentMacroRegisterDock->isChecked());
|
||||
|
||||
// Only apply "on change" to avoid recreation of the dock widget
|
||||
const bool enableDock = dialog._currentMacroRegisterDock->isChecked();
|
||||
if (macro->DockEnabled() != enableDock) {
|
||||
macro->EnableDock(
|
||||
dialog._currentMacroRegisterDock->isChecked());
|
||||
}
|
||||
|
||||
macro->SetDockHasRunButton(
|
||||
dialog._currentMacroDockAddRunButton->isChecked());
|
||||
macro->SetDockHasPauseButton(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user