Skip to content

Commit

Permalink
Removed repeated viewmodel property
Browse files Browse the repository at this point in the history
  • Loading branch information
rocksdanister committed May 31, 2024
1 parent 0e5369b commit 7b2a2a6
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,7 @@ public SettingsSystemViewModel(IUserSettingsClient userSettings,
//MainWindow dispatcher may not be ready yet, creating our own instead..
dispatcherQueue = DispatcherQueue.GetForCurrentThread() ?? DispatcherQueueController.CreateOnCurrentThread().DispatcherQueue;

IsDesktopAutoWallpaper = userSettings.Settings.DesktopAutoWallpaper;
SelectedTaskbarThemeIndex = (int)userSettings.Settings.SystemTaskbarTheme;
//IsLockScreenAutoWallpaper = userSettings.Settings.LockScreenAutoWallpaper;
}

private bool _isDesktopAutoWallpaper;
public bool IsDesktopAutoWallpaper
{
get => _isDesktopAutoWallpaper;
set
{
if (userSettings.Settings.DesktopAutoWallpaper != value)
{
userSettings.Settings.DesktopAutoWallpaper = value;
UpdateSettingsConfigFile();
}
SetProperty(ref _isDesktopAutoWallpaper, value);
}
}

private int _selectedTaskbarThemeIndex;
Expand Down

0 comments on commit 7b2a2a6

Please sign in to comment.