diff --git a/src/App.axaml.cs b/src/App.axaml.cs index 9c1d5087..822084dc 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -368,6 +368,14 @@ namespace SourceGit { BindingPlugins.DataValidators.RemoveAt(0); + // Disable tooltip if window is not active. + ToolTip.ToolTipOpeningEvent.AddClassHandler((c, e) => + { + var topLevel = TopLevel.GetTopLevel(c); + if (topLevel is not Window { IsActive: true }) + e.Cancel = true; + }); + if (TryLaunchAsCoreEditor(desktop)) return;