Skip to content

Commit

Permalink
Fix errors not showing correctly in menu bar
Browse files Browse the repository at this point in the history
  • Loading branch information
inderdhir committed Apr 25, 2024
1 parent 7065d5c commit 8e1f413
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions DatWeatherDoe/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
switch result {
case let .success(weatherData):
self?.updateWeather(with: weatherData)
case .failure:
self?.menuBarManager.updateMenuBarWith(error: "Network Error")
case let .failure(error):
self?.menuBarManager.updateMenuBarWith(error: error.localizedDescription)
}
})
.store(in: &cancellables)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@
/* Location error when fetching weather */
"❗️Location" = "Positionsfehler";

/* Network error when fetching weather */
"Network Error" = "Netzwerkfehler";

/* Weather refresh interval */
"Refresh Interval" = "Aktualisierungsintervall";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@
/* City error when fetching weather */
"❗️City" = "❗️City";

/* Network error when fetching weather */
"Network Error" = "Network Error";

/* Weather refresh interval */
"Refresh Interval" = "Refresh Interval";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@
/* Mist weather condition */
"Mist" = "Brumeux";

/* Network error when fetching weather */
"Network Error" = "Erreur Réseau";

/* Partly cloudy weather condition */
"Partly cloudy" = "Partiellement couvert";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@
/* Location error when fetching weather */
"❗️Location" = "Errore Posizione";

/* Network error when fetching weather */
"Network Error" = "Errore Network";

/* Weather refresh interval */
"Refresh Interval" = "Intervallo Refresh";

Expand Down

0 comments on commit 8e1f413

Please sign in to comment.