mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-11 11:47:41 -05:00
Add un-/pause option to macro tab context menu
Some checks failed
debian-build / build (push) Has been cancelled
Check locale / ubuntu64 (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
Some checks failed
debian-build / build (push) Has been cancelled
Check locale / ubuntu64 (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
This commit is contained in:
@@ -981,6 +981,17 @@ void MacroTree::UpdateWidgets(bool force)
|
||||
}
|
||||
}
|
||||
|
||||
void MacroTree::UpdateRunningStates()
|
||||
{
|
||||
MacroTreeModel *mtm = GetModel();
|
||||
for (int i = 0; i < (int)mtm->_macros.size(); i++) {
|
||||
auto widget = GetItemWidget(i);
|
||||
if (widget) {
|
||||
widget->UpdateRunning();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static inline void MoveItem(std::deque<std::shared_ptr<Macro>> &items,
|
||||
std::shared_ptr<Macro> &item, int to)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user