From 14feadc401e7af4e88a31da1d364706ce8cf3572 Mon Sep 17 00:00:00 2001 From: William JCM Date: Sat, 10 Jul 2021 16:45:25 +0200 Subject: [PATCH] SaveTool: add menu items to open the backup and staging folders. --- src/SaveTool/SaveTool_drawMainMenu.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/SaveTool/SaveTool_drawMainMenu.cpp b/src/SaveTool/SaveTool_drawMainMenu.cpp index 663f3ea..bae4be2 100644 --- a/src/SaveTool/SaveTool_drawMainMenu.cpp +++ b/src/SaveTool/SaveTool_drawMainMenu.cpp @@ -41,6 +41,18 @@ void SaveTool::drawMainMenu() { ImGui::EndMenu(); } + if(ImGui::BeginMenu(ICON_FA_FOLDER_OPEN " Open manager directory")) { + if(ImGui::MenuItem(ICON_FA_EXCHANGE_ALT " Staging area", nullptr, false, _massManager != nullptr)) { + openUri(Utility::Directory::toNativeSeparators(_massManager->stagingAreaDirectory())); + } + + if(ImGui::MenuItem(ICON_FA_FILE_ARCHIVE " Profile backups", nullptr, false, _profileManager != nullptr)) { + openUri(Utility::Directory::toNativeSeparators(_profileManager->backupsDirectory())); + } + + ImGui::EndMenu(); + } + ImGui::Separator(); if(ImGui::MenuItem(ICON_FA_SIGN_OUT_ALT " Quit##QuitMenuItem")) {