mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Reset undo/redo menu item titles
The undo manager will change the titles (e.g. “Undo Rename”) when it’s first responder, so we need to change them back, when the text view is first responder.
This commit is contained in:
@@ -1914,9 +1914,15 @@ static void update_menu_key_equivalents (NSMenu* menu, action_to_key_t const& ac
|
||||
}
|
||||
}
|
||||
else if([aMenuItem action] == @selector(undo:))
|
||||
{
|
||||
[aMenuItem setTitle:@"Undo"];
|
||||
return document->undo_manager().can_undo();
|
||||
}
|
||||
else if([aMenuItem action] == @selector(redo:))
|
||||
{
|
||||
[aMenuItem setTitle:@"Redo"];
|
||||
return document->undo_manager().can_redo();
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user