diff --git a/Screenbox.Core/ViewModels/LivelyWallpaperSelectorViewModel.cs b/Screenbox.Core/ViewModels/LivelyWallpaperSelectorViewModel.cs index a7f4ca2a6..664fcb408 100644 --- a/Screenbox.Core/ViewModels/LivelyWallpaperSelectorViewModel.cs +++ b/Screenbox.Core/ViewModels/LivelyWallpaperSelectorViewModel.cs @@ -40,6 +40,7 @@ public sealed partial class LivelyWallpaperSelectorViewModel : ObservableRecipie private readonly ILivelyWallpaperService _wallpaperService; private readonly IFilesService _filesService; private readonly ISettingsService _settingsService; + private readonly DispatcherQueue _dispatcherQueue; public LivelyWallpaperSelectorViewModel(ILivelyWallpaperService wallpaperService, IFilesService filesService, ISettingsService settingsService, string defaultTitle, string defaultPreviewPath) : this(wallpaperService, filesService, settingsService) @@ -55,6 +56,7 @@ public LivelyWallpaperSelectorViewModel(ILivelyWallpaperService wallpaperService _wallpaperService = wallpaperService; _filesService = filesService; _settingsService = settingsService; + _dispatcherQueue = DispatcherQueue.GetForCurrentThread(); } public async Task InitializeVisualizers() @@ -77,7 +79,7 @@ public async Task LoadVisualizers() public void Receive(PropertyChangedMessage message) { - SelectedVisualizer = message.NewValue; + _dispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, () => SelectedVisualizer = message.NewValue); } partial void OnSelectedVisualizerChanged(LivelyWallpaperModel? value) diff --git a/Screenbox/Controls/LivelyWallpaperSelector.xaml b/Screenbox/Controls/LivelyWallpaperSelector.xaml index f82ae2c9c..bb47687d9 100644 --- a/Screenbox/Controls/LivelyWallpaperSelector.xaml +++ b/Screenbox/Controls/LivelyWallpaperSelector.xaml @@ -62,7 +62,6 @@ @@ -83,7 +82,7 @@ Background="{ThemeResource AcrylicInAppFillColorDefaultBrush}" BorderBrush="{ThemeResource ControlStrokeColorForStrongFillWhenOnImageBrush}" BorderThickness="1" - CornerRadius="{StaticResource GridViewItemCornerRadius}" + CornerRadius="4" ToolTipService.ToolTip="{strings:Resources Key=PoweredByLivelyWallpaper}" Visibility="{x:Bind Path, Converter={StaticResource StringVisibilityConverter}}"> +