mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Bugfix restore Session Recent combo on start
This commit is contained in:
@@ -5063,7 +5063,7 @@ void Navigator::RenderMainPannelVimix()
|
|||||||
//
|
//
|
||||||
ImGui::Text("Sessions");
|
ImGui::Text("Sessions");
|
||||||
static bool selection_session_mode_changed = true;
|
static bool selection_session_mode_changed = true;
|
||||||
static int selection_session_mode = 0;
|
static int selection_session_mode = (Settings::application.recentFolders.path == IMGUI_LABEL_RECENT_FILES) ? 0 : 1;
|
||||||
static DialogToolkit::OpenFolderDialog customFolder("Open Folder");
|
static DialogToolkit::OpenFolderDialog customFolder("Open Folder");
|
||||||
|
|
||||||
// Show combo box of quick selection modes
|
// Show combo box of quick selection modes
|
||||||
@@ -5133,7 +5133,7 @@ void Navigator::RenderMainPannelVimix()
|
|||||||
// fill the session list depending on the mode
|
// fill the session list depending on the mode
|
||||||
static std::list<std::string> sessions_list;
|
static std::list<std::string> sessions_list;
|
||||||
// change session list if changed
|
// change session list if changed
|
||||||
if (selection_session_mode_changed || Settings::application.recentSessions.changed) {
|
if (selection_session_mode_changed || Settings::application.recentSessions.changed || Settings::application.recentFolders.changed) {
|
||||||
|
|
||||||
// selection MODE 0 ; RECENT sessions
|
// selection MODE 0 ; RECENT sessions
|
||||||
if ( selection_session_mode == 0) {
|
if ( selection_session_mode == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user