From c25232833ba72404c9dde6311952d12940d7b4cb Mon Sep 17 00:00:00 2001 From: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> Date: Thu, 18 Jan 2024 18:16:20 +0100 Subject: [PATCH] Set StarDefinitionsCanExceedAvailableSpace switch to fix the crash (#31022) --- src/modules/launcher/PowerLauncher/MainWindow.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs index 00278adba9..4e62d9d407 100644 --- a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs +++ b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs @@ -55,6 +55,10 @@ namespace PowerLauncher _viewModel = mainVM; _nativeWaiterCancelToken = nativeWaiterCancelToken; _settings = settings; + + // Fixes #30850 + AppContext.SetSwitch("Switch.System.Windows.Controls.Grid.StarDefinitionsCanExceedAvailableSpace", true); + InitializeComponent(); if (OSVersionHelper.IsWindows11())