mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-06 20:55:32 +00:00
Fixed: menubar title was set to document title.
Currently, if a window controller has a document, its title is put in menubar. I cannot remember any Cocoa application that ever did this. This commit removes the synchronizing of the document title with the menubar title.
This commit is contained in:
1 parent
54bc851159
commit
50ca0d4b34
1 file changed
-16
@@ -1543,8 +1543,6 @@ CPTexturedBackgroundWindowMask
|
||||
|
||||
[_windowView setTitle:aTitle];
|
||||
[_platformWindow _setTitle:_title window:self];
|
||||
|
||||
[self _synchronizeMenuBarTitleWithWindowTitle];
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -2337,7 +2335,6 @@ CPTexturedBackgroundWindowMask
|
||||
{
|
||||
CPApp._mainWindow = self;
|
||||
|
||||
[self _synchronizeMenuBarTitleWithWindowTitle];
|
||||
[self _synchronizeSaveMenuWithDocumentSaving];
|
||||
|
||||
[_windowView noteMainWindowStateChanged];
|
||||
@@ -3244,19 +3241,6 @@ var keyViewComparator = function(lhs, rhs, context)
|
||||
return CPOrderedDescending;
|
||||
};
|
||||
|
||||
@implementation CPWindow (MenuBar)
|
||||
|
||||
- (void)_synchronizeMenuBarTitleWithWindowTitle
|
||||
{
|
||||
// Windows with Documents automatically update the native window title and the menu bar title.
|
||||
if (![_windowController document] || ![self isMainWindow])
|
||||
return;
|
||||
|
||||
[CPMenu setMenuBarTitle:_title];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation CPWindow (BridgeSupport)
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user