move "open storage path" feature from debug to settings

This commit is contained in:
2025-11-22 09:47:44 +00:00
parent d393bbfc37
commit 4b522d9b3f
2 changed files with 7 additions and 8 deletions
+6 -1
View File
@@ -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) {