Add force notification warning
This commit is contained in:
@@ -56,7 +56,7 @@ public static class MacroCopy
|
|||||||
}
|
}
|
||||||
if (s.Count > 0)
|
if (s.Count > 0)
|
||||||
{
|
{
|
||||||
if (s.Count < MacroSize)
|
if (s.Count < MacroSize || (config.Type != MacroCopyConfiguration.CopyType.CopyToMacro && config.CombineMacro))
|
||||||
{
|
{
|
||||||
if (GetEndCommand(macros.Count, true, config) is { } endCommand)
|
if (GetEndCommand(macros.Count, true, config) is { } endCommand)
|
||||||
s.Add(endCommand);
|
s.Add(endCommand);
|
||||||
|
|||||||
@@ -295,14 +295,20 @@ public sealed class Settings : Window, IDisposable
|
|||||||
|
|
||||||
if (Config.MacroCopy.AddNotification)
|
if (Config.MacroCopy.AddNotification)
|
||||||
{
|
{
|
||||||
DrawOption(
|
var isForceUseful = Config.MacroCopy.Type == MacroCopyConfiguration.CopyType.CopyToMacro || !Config.MacroCopy.CombineMacro;
|
||||||
"Force Notification",
|
using (var d = ImRaii.Disabled(!isForceUseful))
|
||||||
"Prioritize always having a notification sound at the end of\n" +
|
{
|
||||||
"every macro. Keeping this off prevents macros with only 1 action.",
|
DrawOption(
|
||||||
Config.MacroCopy.ForceNotification,
|
"Force Notification",
|
||||||
v => Config.MacroCopy.ForceNotification = v,
|
"Prioritize always having a notification sound at the end of\n" +
|
||||||
ref isDirty
|
"every macro. Keeping this off prevents macros with only 1 action.",
|
||||||
);
|
Config.MacroCopy.ForceNotification,
|
||||||
|
v => Config.MacroCopy.ForceNotification = v,
|
||||||
|
ref isDirty
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (!isForceUseful && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
|
||||||
|
ImGui.SetTooltip("Only useful when Combine Macro is off");
|
||||||
|
|
||||||
DrawOption(
|
DrawOption(
|
||||||
"Add Notification Sound",
|
"Add Notification Sound",
|
||||||
|
|||||||
Reference in New Issue
Block a user