From 4b522d9b3fbf2baeb7d34577e40336572a0285a8 Mon Sep 17 00:00:00 2001 From: futile Date: Sat, 22 Nov 2025 09:47:44 +0000 Subject: [PATCH] move "open storage path" feature from debug to settings --- src/gui/app.rs | 7 ++++++- src/gui/debug.rs | 8 +------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/gui/app.rs b/src/gui/app.rs index ff5aabb..f45e5fd 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -6,7 +6,7 @@ use crate::{ ui_ext::UiExt, }, util::{ - consts::{colours, game::WINDOW_TITLE}, + consts::{colours, game::WINDOW_TITLE, path}, persistent_state::PersistentState, system_info::SystemInfo, win, @@ -283,6 +283,11 @@ impl App { .response .on_disabled_hover_text("This requires administrator.\nUse the Elevate button."); }); + ui.collapsing("Miscellaneous", |ui| { + if ui.button("Open storage path").clicked() { + open::that_detached(path::APP_STORAGE.as_path()).unwrap(); + } + }); } fn show_about_stage(&self, _ctx: &egui::Context, ui: &mut egui::Ui) { diff --git a/src/gui/debug.rs b/src/gui/debug.rs index 11096ca..0dd8f72 100644 --- a/src/gui/debug.rs +++ b/src/gui/debug.rs @@ -3,19 +3,13 @@ use crate::{ app::{App, WINDOW_SIZE}, tools, }, - util::consts::{ - game::{EXE_ENHANCED, EXE_LEGACY}, - path, - }, + util::consts::game::{EXE_ENHANCED, EXE_LEGACY}, }; use eframe::egui; impl App { fn add_debug_viewport_contents(&mut self, ui: &mut egui::Ui) { ui.collapsing("misc", |ui| { - if ui.button("open storage path").clicked() { - open::that_detached(path::APP_STORAGE.as_path()).unwrap(); - } ui.scope(|ui| { use windows::Win32::UI::WindowsAndMessaging::{ GetForegroundWindow, GetWindowTextW,