| 101 | } |
| 102 | |
| 103 | void MacroConditionPluginState::SetCondition(Condition newValue) |
| 104 | { |
| 105 | if (_condition == Condition::OBS_SHUTDOWN) { |
| 106 | GetShutdownConditionCount()--; |
| 107 | } |
| 108 | if (newValue == Condition::OBS_SHUTDOWN) { |
| 109 | GetShutdownConditionCount()++; |
| 110 | } |
| 111 | _condition = newValue; |
| 112 | } |
| 113 | |
| 114 | static inline void populateConditionSelection(QComboBox *list) |
| 115 | { |