Slim down hamburger menu, move Preferences to bottom section

This commit is contained in:
2026-02-28 01:38:40 +02:00
parent dd8790c5d1
commit 7ad8903393

View File

@@ -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, &section2);
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, &section3);