Skip to content

Commit

Permalink
Merge pull request #168 from DHancock/Dev
Browse files Browse the repository at this point in the history
Remove loaded event handler
  • Loading branch information
DHancock authored Jan 26, 2025
2 parents 3aca833 + bbc7e14 commit 663799b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions WinAppSdkCleaner/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace WinAppSdkCleaner.Views;
/// </summary>
public partial class MainWindow : Window
{
private bool firstActivation = true;

public MainWindow()
{
InitializeComponent();
Expand Down Expand Up @@ -50,18 +48,9 @@ public MainWindow()
Settings.Data.Save();
};

Loaded += (s, e) =>
{
sdkView.ExecuteSearch();
};

Activated += (s, e) =>
{
if (firstActivation)
{
firstActivation = false;
}
else if (sdkView.CanSearch())
if (sdkView.CanSearch())
{
sdkView.ExecuteSearch();
}
Expand Down

0 comments on commit 663799b

Please sign in to comment.