fix(ui): reach the settings screen from the menu bar only
The settings screen was given a sidebar entry, but it is not a place to browse from: the bar lists where the packages are, and preferences are where you configure the application. It now opens from the Paramètres menu and Ctrl+, and nowhere else. Two consequences of it having no navigation button are handled rather than left to chance: openSettingsPage() does the work a button would have done (switch, reload, retitle, journal), and the sidebar unchecks itself on the way in, since leaving the previous entry highlighted would point at the wrong screen. Clicking a sidebar entry afterwards selects it as usual.
This commit is contained in:
6 files changed
+45
-23
No files matched your search
@@ -121,6 +121,8 @@ private:
|
||||
// Wires a screen: the frame answers its requests and shows the page it asks
|
||||
// for. Called once per screen by setupPages().
|
||||
void registerPage(const QString& id, int navId, Page* page);
|
||||
// Shows the settings screen, which has no sidebar entry of its own.
|
||||
void openSettingsPage();
|
||||
// Screen currently displayed, and the screens themselves.
|
||||
Page* currentPage() const;
|
||||
void updatePageTitle();
|
||||
|
||||
Reference in new issue
Block a user