mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-17 04:00:42 +00:00
If the mainWindow tries to become main again, just return early.
This commit is contained in:
1 parent
67f35c7b74
commit
01aec1f78e
1 file changed
+3
-3
@@ -1799,13 +1799,13 @@ CPTexturedBackgroundWindowMask
|
||||
*/
|
||||
- (void)makeMainWindow
|
||||
{
|
||||
if (![self canBecomeMainWindow])
|
||||
if (CPApp._mainWindow === self || ![self canBecomeMainWindow])
|
||||
return;
|
||||
|
||||
[CPApp._mainWindow resignMainWindow];
|
||||
|
||||
|
||||
CPApp._mainWindow = self;
|
||||
|
||||
|
||||
[self becomeMainWindow];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user