Skip to content

Commit

Permalink
Merge pull request #13 from AsakuraFuuko/weatherapi
Browse files Browse the repository at this point in the history
fix no network will crash
  • Loading branch information
AsakuraFuuko authored Mar 10, 2024
2 parents 3369744 + 2348402 commit 4c32629
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Install Homebrew dependencies
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install dpkg ldid make libplist openssl@3
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite dpkg ldid make libplist openssl@3
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
- name: Checkout XXTouchNG/theos
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Install Homebrew dependencies
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install dpkg ldid make libplist openssl@3
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install dpkg ldid make libplist openssl@3
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
- name: Checkout XXTouchNG/theos
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/Weather/ColorfulClouds.mm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (NSData *)fetchLocationIDForName:(NSString *)name{
}

-(NSString *)locationName {
return self.city.subLocality;
return self.city.subLocality ?: @"--";
}

-(NSString *)temperature {
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/Weather/QWeather.mm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ - (NSDictionary *)fetch24HoursWeatherForLocation:(NSString *)location{
}

-(NSString *)locationName {
return self.city.subLocality;
return self.city.subLocality ?: @"--";
}

-(NSString *)temperature {
Expand Down

0 comments on commit 4c32629

Please sign in to comment.