mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-17 06:41:03 -05:00
Ignore delete hotkey if macro tab is not in focus
This commit is contained in:
@@ -603,6 +603,11 @@ void AdvSceneSwitcher::MinimizeConditions()
|
||||
|
||||
void AdvSceneSwitcher::DeleteMacroSegementHotkey()
|
||||
{
|
||||
if (!isActiveWindow() || !isAncestorOf(focusWidget()) ||
|
||||
!(ui->tabWidget->currentWidget()->objectName() == "macroTab")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentActionIdx != -1) {
|
||||
RemoveMacroAction(currentActionIdx);
|
||||
} else if (currentConditionIdx != -1) {
|
||||
|
||||
Reference in New Issue
Block a user