Switch to using string as ids for actions and conditions

Using int is an id was getting messy with more and more conditions and
actions beeing added.
It also made the order of conditions and actions in the respective
comboboxes unchangable as there was a 1 to 1 relation of index and id.
This commit is contained in:
WarmUpTill
2021-05-22 00:48:38 +02:00
committed by WarmUpTill
parent ae71b24c60
commit 572b974b82
52 changed files with 173 additions and 132 deletions

View File

@@ -3,7 +3,7 @@
#include "headers/utility.hpp"
#include "headers/advanced-scene-switcher.hpp"
const int MacroConditionPluginState::id = 11;
const std::string MacroConditionPluginState::id = "plugin_state";
bool MacroConditionPluginState::_registered = MacroConditionFactory::Register(
MacroConditionPluginState::id,