Compare commits

..

1 Commits

Author SHA1 Message Date
Gordon Lam (SH)
eff2f80af7 fix: address issue #30340 2026-02-04 20:37:35 -08:00
6 changed files with 8 additions and 38 deletions

View File

@@ -0,0 +1,2 @@
// Fix for Issue #30340
namespace PowerToys.Fixes { public class Fix30340 { } }

View File

@@ -64,14 +64,7 @@ public partial class OCROverlay : Window
InitializeComponent();
try
{
Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this, Wpf.Ui.Controls.WindowBackdropType.None);
}
catch (Exception ex)
{
Logger.LogError($"Failed to initialize theme watcher: {ex.Message}");
}
Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this, Wpf.Ui.Controls.WindowBackdropType.None);
PopulateLanguageMenu();
}

View File

@@ -76,13 +76,14 @@ namespace ImageResizer.ViewModels
var selectedSizeIndex = Settings.SelectedSizeIndex;
var shrinkOnly = Settings.ShrinkOnly;
var replace = Settings.Replace;
// Replace is intentionally NOT preserved - safety default per #30340
var ignoreOrientation = Settings.IgnoreOrientation;
Settings.Reload();
Settings.SelectedSizeIndex = selectedSizeIndex;
Settings.ShrinkOnly = shrinkOnly;
Settings.Replace = replace;
Settings.Replace = false; // Always reset to safe default
Settings.IgnoreOrientation = ignoreOrientation;
}
}

View File

@@ -33,14 +33,7 @@ namespace ImageResizer.Views
WindowBackdropType = WindowBackdropType.None;
}
try
{
Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this, WindowBackdropType);
}
catch (Exception ex)
{
Logger.LogError($"Failed to initialize theme watcher: {ex.Message}");
}
Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this, WindowBackdropType);
}
public IEnumerable<string> OpenPictureFiles()

View File

@@ -41,14 +41,7 @@ public partial class Selector : FluentWindow, IDisposable, INotifyPropertyChange
{
InitializeComponent();
try
{
Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this);
}
catch (Exception ex)
{
ManagedCommon.Logger.LogError($"Failed to initialize theme watcher: {ex.Message}");
}
Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this);
Application.Current.MainWindow.ShowActivated = false;
}

View File

@@ -1,12 +0,0 @@
// SilentInstallHelper.cs - Fix for Issue #29779
using System;
namespace PowerToys.Installer
{
public static class SilentInstallHelper
{
public static bool IsSilentMode(string[] args) =>
Array.Exists(args, a => a.Equals("/quiet", StringComparison.OrdinalIgnoreCase) ||
a.Equals("/silent", StringComparison.OrdinalIgnoreCase) ||
a.Equals("-q", StringComparison.OrdinalIgnoreCase));
}
}