From 8301b4b79d3954357238a1f53d302829db53da48 Mon Sep 17 00:00:00 2001 From: Heti <45892416+prostolyubo@users.noreply.github.com> Date: Wed, 31 Jan 2024 22:43:07 +0100 Subject: [PATCH] Update tooltip of a pull button when it changes The change in pull button when the tip is behind is also reflected in an updated tooltip as suggested in git-up/GitUp#957 --- GitUp/Application/Document.m | 1 + 1 file changed, 1 insertion(+) diff --git a/GitUp/Application/Document.m b/GitUp/Application/Document.m index 32b37aef..9b45a118 100644 --- a/GitUp/Application/Document.m +++ b/GitUp/Application/Document.m @@ -763,6 +763,7 @@ - (void)_updateStatusBar { NSRect frame = _pullButton.frame; if (isBehind) { _pullButton.image = [NSImage imageNamed:@"icon_action_fetch_new"]; + _pullButton.toolTip = NSLocalizedString(@"Local tip is behind - pull current branch from upstream", nil); _pullButton.frame = NSMakeRect(frame.origin.x + frame.size.width - 53, frame.origin.y, 53, frame.size.height); } else { _pullButton.image = [NSImage imageNamed:@"icon_action_fetch"];