|
|
@@ -31,7 +31,7 @@ namespace PicView.WPF.Views.Windows
|
|
|
Width *= WindowSizing.MonitorInfo.DpiScaling;
|
|
|
if (double.IsNaN(Width)) // Fixes if user opens window when loading from startup
|
|
|
{
|
|
|
- WindowSizing.MonitorInfo = MonitorSize.GetMonitorSize();
|
|
|
+ WindowSizing.MonitorInfo = MonitorSize.GetMonitorSize(this);
|
|
|
MaxHeight = WindowSizing.MonitorInfo.WorkArea.Height;
|
|
|
Width *= WindowSizing.MonitorInfo.DpiScaling;
|
|
|
}
|
|
|
@@ -56,8 +56,13 @@ namespace PicView.WPF.Views.Windows
|
|
|
|
|
|
// SubDirRadio
|
|
|
SubDirRadio.IsChecked = Settings.Default.IncludeSubDirectories;
|
|
|
- SubDirRadio.Click += async (_, _) =>
|
|
|
- await UpdateUIValues.ToggleIncludeSubdirectoriesAsync().ConfigureAwait(false);
|
|
|
+ SubDirRadio.Click += async delegate
|
|
|
+ {
|
|
|
+ await Task.Run(async () =>
|
|
|
+ {
|
|
|
+ await UpdateUIValues.ToggleIncludeSubdirectoriesAsync().ConfigureAwait(false);
|
|
|
+ });
|
|
|
+ };
|
|
|
|
|
|
// Slideshow
|
|
|
SlideshowSlider.Value = Settings.Default.SlideTimer / 1000;
|