fix: window not responding on stacked dialog

This commit is contained in:
Nguyen Duy
2024-12-16 11:58:16 +07:00
parent 0087f2c261
commit 721b80c73d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ namespace ParsecVDisplay
{
e.Handled = true;
UpdateDriverLabel();
Tray.Instance?.QueryDriver(null, null);
Tray.Instance.Invoke(() => Tray.Instance.QueryDriver(null, null));
}
private void OpenRepoLink(object sender, MouseButtonEventArgs e)
+1 -1
View File
@@ -406,7 +406,7 @@ namespace ParsecVDisplay
public void Invoke(Action action)
{
TrayIcon.ContextMenuStrip.Invoke(action);
TrayIcon.ContextMenuStrip.BeginInvoke(action);
}
private void SetLanguage(object sender, EventArgs e)