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
+1
-1
@@ -135,7 +135,7 @@ refusée tant que la première tourne. Voir [operations.md](operations.md).
|
||||
|
||||
| Besoin | Endroit |
|
||||
| --- | --- |
|
||||
| Un nouvel écran | Une classe `Page` dans `pages/`, un fichier `.h/.cpp`, puis `setupPages()` et une entrée de barre latérale dans `main_window`. |
|
||||
| Un nouvel écran | Une classe `Page` dans `pages/`, un fichier `.h/.cpp`, puis `setupPages()` et une entrée de barre latérale dans `main_window`. Un écran qui n'est pas une destination à parcourir (les Paramètres) s'enregistre pareil mais s'atteint par `openSettingsPage()` : sans bouton de navigation, `onNavChanged()` ne l'atteint pas. |
|
||||
| Une nouvelle opération | Une méthode dans `AppCore` qui construit une `Request` et appelle `startRequest()` ; un `InstallWorker::Op` ; sa ligne dans `startMessage()`, `successMessage()`, `failureMessage()`. |
|
||||
| Une nouvelle liste | Une valeur dans `AppCore::ListMode`, un mode dans `ListWorker`, un slot dans `listFinished`. |
|
||||
| Un nouveau provider | Un plugin externe (voir [plugins.md](plugins.md)) — jamais une modification du cœur. |
|
||||
|
||||
Reference in new issue
Block a user