mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Fix for WPF DPI issue on .net 3.1.19 (#13551)
This commit is contained in:
@@ -93,6 +93,9 @@ namespace PowerLauncher
|
||||
private void OnStartup(object sender, StartupEventArgs e)
|
||||
{
|
||||
Log.Info("On Startup.", GetType());
|
||||
|
||||
// Fix for .net 3.1.19 making PowerToys Run not adapt to DPI changes.
|
||||
PowerLauncher.Helper.NativeMethods.SetProcessDPIAware();
|
||||
var bootTime = new System.Diagnostics.Stopwatch();
|
||||
bootTime.Start();
|
||||
Stopwatch.Normal("App.OnStartup - Startup cost", () =>
|
||||
|
||||
Reference in New Issue
Block a user