Slim down hamburger menu, move Preferences to bottom section
Remove Scan, Check for Updates, and Browse Catalog from the hamburger menu since they are now accessible via the library scan button, Updates tab, and Catalog tab respectively. Group Preferences with Shortcuts and About at the bottom.
This commit is contained in:
@@ -143,21 +143,18 @@ impl DriftwoodWindow {
|
||||
}
|
||||
|
||||
fn setup_ui(&self) {
|
||||
// Build the hamburger menu model
|
||||
// Build the hamburger menu model (slim - tabs handle catalog/updates/scan)
|
||||
let menu = gio::Menu::new();
|
||||
menu.append(Some(&i18n("Dashboard")), Some("win.dashboard"));
|
||||
menu.append(Some(&i18n("Preferences")), Some("win.preferences"));
|
||||
|
||||
let section2 = gio::Menu::new();
|
||||
section2.append(Some(&i18n("Scan for AppImages")), Some("win.scan"));
|
||||
section2.append(Some(&i18n("Check for Updates")), Some("win.check-updates"));
|
||||
section2.append(Some(&i18n("Find Duplicates")), Some("win.find-duplicates"));
|
||||
section2.append(Some(&i18n("Security Report")), Some("win.security-report"));
|
||||
section2.append(Some(&i18n("Disk Cleanup")), Some("win.cleanup"));
|
||||
section2.append(Some(&i18n("Browse Catalog")), Some("win.catalog"));
|
||||
menu.append_section(None, §ion2);
|
||||
|
||||
let section3 = gio::Menu::new();
|
||||
section3.append(Some(&i18n("Preferences")), Some("win.preferences"));
|
||||
section3.append(Some(&i18n("Keyboard Shortcuts")), Some("win.show-shortcuts"));
|
||||
section3.append(Some(&i18n("About Driftwood")), Some("app.about"));
|
||||
menu.append_section(None, §ion3);
|
||||
|
||||
Reference in New Issue
Block a user