summaryrefslogtreecommitdiff
path: root/src/nsmenu.m
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2021-09-13 20:09:22 +0100
committerAlan Third <alan@idiocy.org>2021-09-14 10:08:17 +0100
commit1e83d04214f27a79a4d4841772da946e24cbf21d (patch)
tree93355aa68e769d1a007a758c31d3c5fd83a78688 /src/nsmenu.m
parent443d37ff213ec31c8450a9cce36a7c44ac63945b (diff)
downloademacs-1e83d04214f27a79a4d4841772da946e24cbf21d.tar.gz
Fix incorrectly appearing toolbar on NS (bug#50534)
* src/nsmenu.m (update_frame_tool_bar): Ensure both sides of the test are booleans. * src/nsterm.m ([EmacsWindow createToolbar:]): Make the toolbar non-visible initially, in case things get out of sync. Remove call to update_frame_tool_bar: the window isn't yet associated with the view, so it will return immediately.
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r--src/nsmenu.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 3493e4e131d..f0c5bb24e63 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1094,7 +1094,7 @@ update_frame_tool_bar (struct frame *f)
#undef TOOLPROP
}
- if ([toolbar isVisible] != FRAME_EXTERNAL_TOOL_BAR (f))
+ if (![toolbar isVisible] != !FRAME_EXTERNAL_TOOL_BAR (f))
{
f->output_data.ns->in_animation = 1;
[toolbar setVisible: FRAME_EXTERNAL_TOOL_BAR (f)];