Skip to content

Add recently-used file list to the welcome screen - #1119

Open
d-kad wants to merge 1 commit into
gambitproject:masterfrom
d-kad:welcome_screen
Open

Add recently-used file list to the welcome screen#1119
d-kad wants to merge 1 commit into
gambitproject:masterfrom
d-kad:welcome_screen

Conversation

@d-kad

@d-kad d-kad commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Issues closed by this PR

Description of the changes in this PR

This PR adds a list of recently opened games to the welcome screen, below the existing buttons.

Comment thread src/gui/welcome.cc
constexpr int ID_WELCOME_RECENT_LAST = ID_WELCOME_RECENT_FIRST + MAX_RECENT_FILES - 1;

/// Drop `p_filename` from the application's most-recently-used list, if it is there.
void RemoveFromFileHistory(const wxString &p_filename)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (and some of the other bits below) are independently managing the MRU file list, separate from the mechanism that's already present in the App class. We should consolidate all the data-model manipulation as part of the App - and focus this file on the UI itself.

Comment thread src/gui/welcome.cc
content->Add(m_newExtensiveFormButton, 0, wxEXPAND, 0);

// Hidden, and contributing no height, when there is no file history to show.
content->Add(m_recentLine, 0, wxEXPAND | wxTOP | wxBOTTOM, 20);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the MRU file list is in the right place logically - it should be linked visually to the Open option. I've had the attached mockup done for a combo-button-dropdown type approach which seems a bit more elegant.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GUI] Add ability to select a recently-loaded file to the welcome screen

2 participants