Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@

/* Menu bar */
"TorroMail" = "TorroMail";
"Open TorroMail" = "TorroMail öffnen";
"Settings…" = "Einstellungen…";
"%d waiting for you" = "%d wartet auf dich";
"Quit TorroMail" = "TorroMail beenden";
"Quit" = "Beenden";

/* Settings */
"Start at login" = "Beim Anmelden starten";
Expand Down
7 changes: 4 additions & 3 deletions apps/TorroMailApp/Sources/TorroMailApp/TorroMailApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -721,14 +721,15 @@ struct TorroMailApp: App {
}

/// The menu bar item stays a doorway, not a second control surface: open the
/// window, or stop the app.
/// settings pane, or stop the app.
private struct MenuBarContent: View {
@Environment(\.openWindow) private var openWindow
@EnvironmentObject private var model: TorroMailModel
@EnvironmentObject private var presence: TorroMailPresence

var body: some View {
Button(L("Open TorroMail")) {
Button(L("Settings…")) {
model.selectedSidebarItem = .settings
showMainWindow()
}
if model.pendingActionCount > 0 {
Expand All @@ -738,7 +739,7 @@ private struct MenuBarContent: View {
}
}
Divider()
Button(L("Quit TorroMail")) {
Button(L("Quit")) {
NSApp.terminate(nil)
}
}
Expand Down
Loading