From 2e878986ef8288dde5b29edbef8272714f21dfee Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Fri, 1 Nov 2024 12:32:58 -0400 Subject: [PATCH] Add setting for whether to show document icon at title bar Don't automatically hide the icon while in transparent title bar mode, since it's a little confusing to the user. Instead, just use an extra setting for that. Also, when hiding the icon, properly hide it now by clearing it. Previously it was just making an invisible icon which was still draggable and didn't behave properly. Make sure after we set the setting it's refreshed correctly. Fix #1503 --- src/MacVim/Base.lproj/Preferences.xib | 28 +++++++++++++++++++-------- src/MacVim/MMAppController.m | 1 + src/MacVim/MMWindowController.h | 2 ++ src/MacVim/MMWindowController.m | 23 ++++++++++++++++------ src/MacVim/Miscellaneous.h | 1 + src/MacVim/Miscellaneous.m | 1 + 6 files changed, 42 insertions(+), 14 deletions(-) diff --git a/src/MacVim/Base.lproj/Preferences.xib b/src/MacVim/Base.lproj/Preferences.xib index e1c521a09a..54e83955d9 100644 --- a/src/MacVim/Base.lproj/Preferences.xib +++ b/src/MacVim/Base.lproj/Preferences.xib @@ -280,11 +280,11 @@ - + - + @@ -345,11 +345,11 @@ - + - + @@ -358,7 +358,7 @@ +