Skip to content

added Stop for.. weird cases and adjusting AR disabling timing #925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AutoDuty/Helpers/AutoRetainerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ internal override void Start()

internal override void Stop()
{
Plugin.Chat.ExecuteCommand("/autoretainer d");
this._autoRetainerStarted = false;
this._autoRetainerStopped = false;
GotoInnHelper.ForceStop();
Expand All @@ -41,6 +40,7 @@ internal override void Stop()

if (AutoRetainer_IPCSubscriber.IsBusy())
AutoRetainer_IPCSubscriber.AbortAllTasks();
Plugin.Chat.ExecuteCommand("/autoretainer d");
}

private bool _autoRetainerStarted = false;
Expand Down
7 changes: 7 additions & 0 deletions AutoDuty/Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ internal static void StopResumePause()

internal static void GotoAndActions()
{
if(Plugin.States.HasFlag(PluginState.Other))
{
if(ImGui.Button("Stop"))
Plugin.Stage = Stage.Stopped;
ImGui.SameLine(0,5);
}

using (ImRaii.Disabled(Plugin.States.HasFlag(PluginState.Looping) || Plugin.States.HasFlag(PluginState.Navigating)))
{
using (ImRaii.Disabled(Plugin.Configuration is { OverrideOverlayButtons: true, GotoButton: false }))
Expand Down