diff --git a/Installer.iss b/Installer.iss index 1148cd5..56c73a6 100644 --- a/Installer.iss +++ b/Installer.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "Nickvision Spotlight" -#define MyAppVersion "2021.12.0" +#define MyAppVersion "2021.12.1" #define MyAppPublisher "Nickvision" #define MyAppURL "https://github.com/nlogozzo/NickvisionSpotlight" #define MyAppExeName "NickvisionSpotlight.exe" diff --git a/NickvisionSpotlight/ViewModels/MainWindowViewModel.cs b/NickvisionSpotlight/ViewModels/MainWindowViewModel.cs index a6e3a7d..a26132a 100644 --- a/NickvisionSpotlight/ViewModels/MainWindowViewModel.cs +++ b/NickvisionSpotlight/ViewModels/MainWindowViewModel.cs @@ -26,6 +26,7 @@ public class MainWindowViewModel : ViewModelBase private string _selectedImage; private Bitmap _selectedImageSource; + public bool IsImageNotSelected => string.IsNullOrEmpty(SelectedImage); public ObservableCollection SpotlightImages { get; init; } public DelegateAsyncCommand OpenedCommand { get; init; } public DelegateAsyncCommand SaveCommand { get; init; } @@ -76,6 +77,7 @@ public string SelectedImage set { SetProperty(ref _selectedImage, value); + OnPropertyChanged("IsImageNotSelected"); foreach(var image in _spotlightManager.SpotlightImages) { if(image.Filename == value) @@ -155,6 +157,7 @@ private async Task SaveAll(object parameter) private async Task SyncSpotlightImages(object parameter) { SpotlightImages.Clear(); + SelectedImageSource = null; await _serviceCollection.GetService().ShowAsync("Syncing spotlight images...", async () => await _spotlightManager.SyncSpotlightImagesAsync()); foreach(var image in _spotlightManager.SpotlightImages) { @@ -168,7 +171,7 @@ private async Task SyncSpotlightImages(object parameter) private async Task CheckForUpdates(ICloseable window) { - var updater = new Updater(_httpClient, new Uri("https://raw.githubusercontent.com/nlogozzo/NickvisionSpotlight/main/UpdateConfig.json"), new Version("2021.12.0")); + var updater = new Updater(_httpClient, new Uri("https://raw.githubusercontent.com/nlogozzo/NickvisionSpotlight/main/UpdateConfig.json"), new Version("2021.12.1")); await _serviceCollection.GetService().ShowAsync("Checking for updates...", async () => await updater.CheckForUpdatesAsync()); if (updater.UpdateAvailable) { @@ -213,7 +216,7 @@ private async Task Changelog(object parameter) await _serviceCollection.GetService().ShowMessageAsync(new ContentDialogInfo() { Title = "What's New?", - Description = "- Initial Release", + Description = "- Design Tweaks\n- Fixed an issue where the old image stayed selected after a re-sync", CloseButtonText = "OK", DefaultButton = ContentDialogButton.Close }); @@ -224,7 +227,7 @@ private async Task About(object parameter) await _serviceCollection.GetService().ShowMessageAsync(new ContentDialogInfo() { Title = "About", - Description = "Nickvision Spotlight Version 2021.12.0\nA utility for working with Windows Spotlight images.\n\nUsing Avalonia and .NET 6", + Description = "Nickvision Spotlight Version 2021.12.1\nA utility for working with Windows Spotlight images.\n\nUsing Avalonia and .NET 6", CloseButtonText = "OK", DefaultButton = ContentDialogButton.Close }); diff --git a/NickvisionSpotlight/Views/MainWindowView.axaml b/NickvisionSpotlight/Views/MainWindowView.axaml index 37a5de2..02038b1 100644 --- a/NickvisionSpotlight/Views/MainWindowView.axaml +++ b/NickvisionSpotlight/Views/MainWindowView.axaml @@ -126,7 +126,11 @@ - + + + + + diff --git a/UpdateConfig.json b/UpdateConfig.json index 0eb64a3..aa8ccf2 100644 --- a/UpdateConfig.json +++ b/UpdateConfig.json @@ -1 +1 @@ -{"LatestVersion":"2021.12.0","Changelog":"- Initial Release","LinkToExeInstaller":"https://github.com/nlogozzo/NickvisionSpotlight/releases/download/2021.12.0/NickvisionSpotlightSetup.exe"} \ No newline at end of file +{"LatestVersion":"2021.12.1","Changelog":"- Design Tweaks\n- Fixed an issue where the old image stayed selected after a re-sync","LinkToExeInstaller":"https://github.com/nlogozzo/NickvisionSpotlight/releases/download/2021.12.0/NickvisionSpotlightSetup.exe"} \ No newline at end of file