Enhance EditorManager with session management and workspace preset improvements

- Introduced session renaming functionality, allowing users to customize session names for better organization.
- Implemented duplicate session detection to prevent loading the same ROM in multiple sessions.
- Enhanced workspace preset management with improved error handling and validation during loading and saving.
- Updated UI elements to support lazy loading of workspace presets, ensuring they are available when needed.
- Refactored session display logic to provide clearer naming and improved user experience in session management.
This commit is contained in:
scawful
2025-09-25 17:22:48 -04:00
parent aaa7af9f07
commit 015a5600c5
4 changed files with 186 additions and 39 deletions

View File

@@ -281,13 +281,16 @@ void TestManager::TrimResourceHistory() {
}
}
void TestManager::DrawTestDashboard() {
show_dashboard_ = true; // Enable dashboard visibility
void TestManager::DrawTestDashboard(bool* show_dashboard) {
bool* dashboard_flag = show_dashboard ? show_dashboard : &show_dashboard_;
// Set a larger default window size
ImGui::SetNextWindowSize(ImVec2(900, 700), ImGuiCond_FirstUseEver);
ImGui::Begin("Test Dashboard", &show_dashboard_, ImGuiWindowFlags_MenuBar);
if (!ImGui::Begin("Test Dashboard", dashboard_flag, ImGuiWindowFlags_MenuBar)) {
ImGui::End();
return;
}
// ROM status indicator with detailed information
bool has_rom = current_rom_ && current_rom_->is_loaded();