mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
Reenabled the "Toggle Inspector" Behaviour
This commit is contained in:
@@ -183,7 +183,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)toggleInspector:(id)sender {
|
- (void)toggleInspector:(id)sender {
|
||||||
|
NSView *inspectorView = [_inspectorTabViewController view];
|
||||||
|
if([inspectorView superview]) {
|
||||||
|
[inspectorView removeFromSuperview];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[_splitView addSubview:inspectorView];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)showEntries {
|
- (void)showEntries {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ NSString *const MPToolbarItemInspector = @"TOOLBAR_INSPECTOR";
|
|||||||
- (id)init {
|
- (id)init {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
_toolbarIdentifiers = [@[ MPToolbarItemAddEntry, MPToolbarItemDelete, MPToolbarItemAddGroup, MPToolbarItemAction, NSToolbarFlexibleSpaceItemIdentifier, MPToolbarItemLock ] retain];
|
_toolbarIdentifiers = [@[ MPToolbarItemAddEntry, MPToolbarItemDelete, MPToolbarItemAddGroup, MPToolbarItemAction, NSToolbarFlexibleSpaceItemIdentifier, MPToolbarItemLock, MPToolbarItemInspector ] retain];
|
||||||
_toolbarImages = [[self createToolbarImages] retain];
|
_toolbarImages = [[self createToolbarImages] retain];
|
||||||
_toolbarItems = [[NSMutableDictionary alloc] initWithCapacity:[self.toolbarIdentifiers count]];
|
_toolbarItems = [[NSMutableDictionary alloc] initWithCapacity:[self.toolbarIdentifiers count]];
|
||||||
}
|
}
|
||||||
@@ -148,7 +148,7 @@ NSString *const MPToolbarItemInspector = @"TOOLBAR_INSPECTOR";
|
|||||||
MPToolbarItemAddGroup: NSLocalizedString(@"ADD_GROUP", @""),
|
MPToolbarItemAddGroup: NSLocalizedString(@"ADD_GROUP", @""),
|
||||||
MPToolbarItemDelete: NSLocalizedString(@"DELETE", @""),
|
MPToolbarItemDelete: NSLocalizedString(@"DELETE", @""),
|
||||||
MPToolbarItemEdit: NSLocalizedString(@"EDIT", @""),
|
MPToolbarItemEdit: NSLocalizedString(@"EDIT", @""),
|
||||||
MPToolbarItemInspector: NSLocalizedString(@"TOGGLE_INSPECTOR", @"")
|
MPToolbarItemInspector: NSLocalizedString(@"INSPECTOR", @"")
|
||||||
};
|
};
|
||||||
return labelDict[identifier];
|
return labelDict[identifier];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>CE1</string>
|
<string>CFD</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user