[BugReport]Fix hang when bug report is launched (#28506)

* fix hang when bug report is launched from flyout

* Normalize output dir for release
This commit is contained in:
Davide Giacometti
2023-09-15 08:34:17 +02:00
committed by GitHub
parent 51906e68a4
commit b8a83fba1b
10 changed files with 78 additions and 70 deletions

View File

@@ -13,6 +13,7 @@ using Microsoft.PowerToys.Telemetry;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Media.Animation;
using WinUIEx;
namespace Microsoft.PowerToys.Settings.UI.Flyout
{
@@ -141,6 +142,9 @@ namespace Microsoft.PowerToys.Settings.UI.Flyout
private void ReportBugBtn_Click(object sender, RoutedEventArgs e)
{
ViewModel.StartBugReport();
// Closing manually the flyout since no window will steal the focus
App.GetFlyoutWindow()?.Hide();
}
}
}