Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabboxl committed Sep 11, 2024
1 parent af30f09 commit ffc7b86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions FluentWeather/Services/LiveTileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ private bool LaunchFromLiveTileUpdate(LaunchActivatedEventArgs args)
}


public async Task SaveSettingsAsync(bool newValue, string SettingsKey)
public async Task SaveSettingsAsync(bool newValue, string settingsKey)
{
await ApplicationData.Current.LocalSettings.SaveAsync(SettingsKey, newValue);
await ApplicationData.Current.LocalSettings.SaveAsync(settingsKey, newValue);
}


Expand Down
5 changes: 2 additions & 3 deletions FluentWeather/Views/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void Initialize()
var coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
coreTitleBar.ExtendViewIntoTitleBar = true;

AppTitleTextBlock.Text = "" + Windows.ApplicationModel.Package.Current.DisplayName;
AppTitleTextBlock.Text = "" + Package.Current.DisplayName;
Window.Current.SetTitleBar(TitleBarGrid);

//remove the solid-colored backgrounds behind the caption controls and system back button
Expand Down Expand Up @@ -291,8 +291,7 @@ private void CrossfadeToImage(Uri newImageUri)
Image1.Source = newImage;
}

//remeber that the imageopened event is fired only when the image is shown in some way :( so we need to set the image soiurce before

//remeber that the imageopened event is fired only when the image is shown in some way :( so we need to set the image source before

//this ensures the animation is played only when the image is loaded
newImage.ImageOpened += (sender, args) =>
Expand Down

0 comments on commit ffc7b86

Please sign in to comment.