refactor: Update RecentFilesManager and ThemeManager for improved utility usage

- Refactored RecentFilesManager to utilize the utility function for ensuring the configuration directory exists, enhancing code clarity.
- Updated ThemeManager to use the utility function for retrieving file names, improving consistency across the codebase.
- Adjusted selected_editor initialization in EditorSelectionDialog to use static_cast for better type safety.
This commit is contained in:
scawful
2025-10-05 00:28:49 -04:00
parent 91a22bffbb
commit 28bc2d4cc7
4 changed files with 5 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ class EditorSelectionDialog {
void DrawQuickAccessButtons();
std::vector<EditorInfo> editors_;
EditorType selected_editor_ = EditorType::kNone;
EditorType selected_editor_ = static_cast<EditorType>(0);
bool is_open_ = false;
std::function<void(EditorType)> selection_callback_;