mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
enhance: do not show tooltip if the ower window is deactived (#1218)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
9c53894cb4
commit
6882ae069f
1 changed files with 8 additions and 0 deletions
|
@ -368,6 +368,14 @@ namespace SourceGit
|
||||||
{
|
{
|
||||||
BindingPlugins.DataValidators.RemoveAt(0);
|
BindingPlugins.DataValidators.RemoveAt(0);
|
||||||
|
|
||||||
|
// Disable tooltip if window is not active.
|
||||||
|
ToolTip.ToolTipOpeningEvent.AddClassHandler<Control>((c, e) =>
|
||||||
|
{
|
||||||
|
var topLevel = TopLevel.GetTopLevel(c);
|
||||||
|
if (topLevel is not Window { IsActive: true })
|
||||||
|
e.Cancel = true;
|
||||||
|
});
|
||||||
|
|
||||||
if (TryLaunchAsCoreEditor(desktop))
|
if (TryLaunchAsCoreEditor(desktop))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue