diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2019-07-16 15:04:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-16 15:04:18 +0300 |
commit | 455480098889e310ccbacfeded93d502bbc7d040 (patch) | |
tree | 310b5eaea47d023bdedebe9fc295f24a6bfce9bb | |
parent | bd0ab28ba941b19b39322247db020dcd0fb305d0 (diff) | |
parent | 1448c4e9eb5f7485314f7ac094fd46e56aa6496c (diff) |
Merge pull request #8164 from mono/backport-pr-8156-to-release-8.1release-8.1
[release-8.1] [Mac] Don't reshow the popover when the view has been removed from th…
-rw-r--r-- | main/src/addins/MacPlatform/MainToolbar/StatusBar.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs b/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs index ba3761b28b..14b858c077 100644 --- a/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs +++ b/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs @@ -700,6 +700,7 @@ namespace MonoDevelop.MacIntegration.MainToolbar public override void ViewDidMoveToWindow () { base.ViewDidMoveToWindow (); + ReconstructString (); RepositionContents (); } @@ -720,7 +721,13 @@ namespace MonoDevelop.MacIntegration.MainToolbar imageView.Image = image; if (updatePopover) { DestroyPopover (null, null); - ShowPopoverForStatusBar (); + + // Window will be null if the StatusBar has been removed from its parent + // In that case we want to destroy the popover, but we don't want to show + // it again + if (Window != null) { + ShowPopoverForStatusBar (); + } } } } |