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);
|
||||||
|
|||||||
@@ -294,6 +294,9 @@ public sealed class Settings : Window, IDisposable
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (Config.MacroCopy.AddNotification)
|
if (Config.MacroCopy.AddNotification)
|
||||||
|
{
|
||||||
|
var isForceUseful = Config.MacroCopy.Type == MacroCopyConfiguration.CopyType.CopyToMacro || !Config.MacroCopy.CombineMacro;
|
||||||
|
using (var d = ImRaii.Disabled(!isForceUseful))
|
||||||
{
|
{
|
||||||
DrawOption(
|
DrawOption(
|
||||||
"Force Notification",
|
"Force Notification",
|
||||||
@@ -303,6 +306,9 @@ public sealed class Settings : Window, IDisposable
|
|||||||
v => Config.MacroCopy.ForceNotification = v,
|
v => Config.MacroCopy.ForceNotification = v,
|
||||||
ref isDirty
|
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