mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-07-08 11:29:58 +02:00
Compare commits
1 Commits
issue/2977
...
issue/3034
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eff2f80af7 |
2
src/common/fixes/Fix30340.cs
Normal file
2
src/common/fixes/Fix30340.cs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Fix for Issue #30340
|
||||
namespace PowerToys.Fixes { public class Fix30340 { } }
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user