Skip to content

fixed issue #185 #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions virtualization_view.m
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ - (void)hideOverlay
static NSString *const PlayToolbarIdentifier = @"Play";
static NSString *const PowerToolbarIdentifier = @"Power";
static NSString *const SpaceToolbarIdentifier = @"Space";
static NSString *const Space2ToolbarIdentifier = @"Space2";

- (NSArray<NSToolbarItemIdentifier> *)setupToolbarItemIdentifiers
{
Expand All @@ -341,7 +342,7 @@ - (void)hideOverlay
[toolbarItems addObject:PlayToolbarIdentifier];
}
if ([self canStopVirtualMachine] || [self canStartVirtualMachine]) {
[toolbarItems addObject:SpaceToolbarIdentifier];
[toolbarItems addObject:Space2ToolbarIdentifier];
[toolbarItems addObject:PowerToolbarIdentifier];
}
}
Expand Down Expand Up @@ -495,6 +496,7 @@ - (NSWindow *)createMainWindowWithTitle:(NSString *)title
PlayToolbarIdentifier,
PauseToolbarIdentifier,
SpaceToolbarIdentifier,
Space2ToolbarIdentifier,
PowerToolbarIdentifier,
NSToolbarSpaceItemIdentifier,
NSToolbarFlexibleSpaceItemIdentifier
Expand Down Expand Up @@ -536,7 +538,7 @@ - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSToolbar
[item setView:zoomButton];
[item setLabel:@"Zoom"];
[item setToolTip:@"Toggle Zoom"];
} else if ([itemIdentifier isEqualToString:SpaceToolbarIdentifier]) {
} else if ([itemIdentifier isEqualToString:SpaceToolbarIdentifier] || [itemIdentifier isEqualToString:Space2ToolbarIdentifier]) {
NSView *spaceView = [[[NSView alloc] initWithFrame:NSMakeRect(0, 0, 2, 10)] autorelease];
item.view = spaceView;
item.minSize = NSMakeSize(1, 10);
Expand Down