Drop Drop reordering for macro list

This commit is contained in:
Asriel Camora
2023-11-17 11:54:36 -08:00
parent 68358d9ad1
commit 4fd2cd989b
3 changed files with 63 additions and 5 deletions
+7
View File
@@ -112,6 +112,13 @@ public class Configuration : IPluginConfiguration
}
}
public void SwapMacros(int i, int j)
{
(macros[i], macros[j]) = (macros[j], macros[i]);
Save();
OnMacroListChanged?.Invoke();
}
public void Save() =>
Service.PluginInterface.SavePluginConfig(this);
}