From 69f807b2f7a52c036b5e71ae5a5b8816853364c7 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 1 Nov 2024 19:03:30 -0400 Subject: [PATCH] Add "Retry" button to manual steps in the plugin --- dalamud/Auracite/StepWindow.cs | 5 +++++ src/lib.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dalamud/Auracite/StepWindow.cs b/dalamud/Auracite/StepWindow.cs index 377cbc6..f28da95 100644 --- a/dalamud/Auracite/StepWindow.cs +++ b/dalamud/Auracite/StepWindow.cs @@ -19,6 +19,11 @@ public class StepWindow() ImGui.Text(Plugin.CurrentStep.StepDescription()); ImGui.TextDisabled("Step requires manual user action."); + + if (ImGui.Button("Retry")) + { + Plugin.CurrentStep.Run(); + } } else { diff --git a/src/lib.rs b/src/lib.rs index 72c99c9..07e4355 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -273,8 +273,8 @@ pub async fn archive_character(character_name: &str, use_dalamud: bool) -> Resul } // Stop the HTTP server - //let stop_url = Url::parse(&"http://localhost:42072/stop").map_err(|_| ArchiveError::UnknownError)?; - //download(&stop_url).await; + let stop_url = Url::parse(&"http://localhost:42072/stop").map_err(|_| ArchiveError::UnknownError)?; + download(&stop_url).await; } let char_dat = physis::chardat::CharacterData {