Skip to content

Commit

Permalink
Fix issue #73: visor stuck on new tab when hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlacroix committed Aug 4, 2010
1 parent 562a287 commit 06e0067
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Visor.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
BOOL ignoreResizeNotifications;
id runningApplicationClass_;
BOOL runningOnLeopard_;
BOOL dontShowOnFirstTab;
}

- (NSWindow *)window;
Expand Down
8 changes: 8 additions & 0 deletions src/Visor.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ - (id)Visor_TTWindowController_newTabWithProfile:(id)arg1 {
id profileManager = [NSClassFromString(@"TTProfileManager") sharedProfileManager];
arg1 = [profileManager defaultProfile];
}
if ([visor isHidden]) {
[visor showVisor:false];
}
}
return [self Visor_TTWindowController_newTabWithProfile:arg1];
}
Expand Down Expand Up @@ -620,6 +623,7 @@ - (id) init {
isHidden = true;
isMain = false;
isKey = false;
dontShowOnFirstTab = true;

[NSBundle loadNibNamed:@"Visor" owner:self];

Expand Down Expand Up @@ -984,6 +988,10 @@ - (BOOL)reopenVisor {

- (void)showVisor:(BOOL)fast {
if (!isHidden) return;
if (dontShowOnFirstTab) {
dontShowOnFirstTab = false;
return;
}
LOG(@"showVisor %d", fast);
isHidden = false;
[self updateStatusMenu];
Expand Down

0 comments on commit 06e0067

Please sign in to comment.