Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Frak AlNuaimy committed Sep 2, 2020
1 parent 2eb0a48 commit 4a880fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion App/BitBar/ExecutablePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ -(BOOL)refresh {
strongSelf.lastUpdated = NSDate.new;
//NSLog(@"3 ");
NSString *versionString = [NSBundle.mainBundle.infoDictionary objectForKey:@"CFBundleShortVersionString"];
[self.statusItem setToolTip:([NSString stringWithFormat:@"Dockerinfo %@\nMenubar Docker Dashboard", versionString] )];
[self.statusItem setToolTip:([NSString stringWithFormat:@"Docker Info %@\nMenubar Docker Dashboard", versionString] )];
//NSLog(@"Dockerinfo vvv.Menubar Docker Dashboard");

[strongSelf rebuildMenuForStatusItem:strongSelf.statusItem];
Expand Down
6 changes: 3 additions & 3 deletions App/BitBar/Plugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (NSStatusItem *)statusItem { return _statusItem = _statusItem ?: ({

//NSMenuItem *versionMenuitem = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"BaseVersion: %@", versionString] action:nil keyEquivalent:@""];

[self.statusItem setToolTip:([NSString stringWithFormat:@"Dockerinfo %@ \nMenubar Docker Dashboard ", versionString] )];
[self.statusItem setToolTip:([NSString stringWithFormat:@"Docker Info %@ \nMenubar Docker Dashboard ", versionString] )];
//[NSString stringWithFormat:@"Dockerinfo %@ \nMenubar Docker Dashboard", versionString]
// build the menu
[self rebuildMenuForStatusItem:_statusItem]; _statusItem; });
Expand Down Expand Up @@ -442,7 +442,7 @@ - (void) rebuildMenuForStatusItem:(NSStatusItem*)statusItem {

if (self.lastUpdated != nil) {

self.lastUpdatedMenuItem = [NSMenuItem.alloc initWithTitle:@"Updated just now" action:nil keyEquivalent:@""];
self.lastUpdatedMenuItem = [NSMenuItem.alloc initWithTitle:@"Updated just now" action:nil keyEquivalent:@""];
[menu addItem:self.lastUpdatedMenuItem];
}
self.MemoryUsedMenuItem = [NSMenuItem.alloc initWithTitle:@"Memory" action:nil keyEquivalent:@""];
Expand Down Expand Up @@ -758,7 +758,7 @@ - (void)menuWillOpen:(NSMenu *)menu {

[self.statusItem setHighlightMode:YES];

[self.lastUpdatedMenuItem setTitle:self.lastUpdated ? [NSString stringWithFormat:@"Updated %@", self.lastUpdatedString] : @"Refreshing…"];
[self.lastUpdatedMenuItem setTitle:self.lastUpdated ? [NSString stringWithFormat:@"Updated %@", self.lastUpdatedString] : @"Refreshing…"];
[self.MemoryUsedMenuItem setTitle: [NSString stringWithFormat:@"Memory Used: %d MB", [self report_memory]]];
self.MemoryUsedMenuItem.alternate = YES;
self.MemoryUsedMenuItem.keyEquivalentModifierMask = NSAlternateKeyMask;
Expand Down
6 changes: 3 additions & 3 deletions App/BitBar/PluginManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ - (void) addHelperItemsToMenu:(NSMenu*)menu asSubMenu:(BOOL)submenu {

NSString *versionString = [NSBundle.mainBundle.infoDictionary objectForKey:@"CFBundleShortVersionString"];

NSMenuItem *versionMenuitem = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"BaseVersion: %@", versionString] action:nil keyEquivalent:@""];
NSMenuItem *versionMenuitem = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"🏷️ Version: %@", versionString] action:nil keyEquivalent:@""];
/*
if (!DEFS.userConfigDisabled) {
versionMenuitem.alternate = YES;
Expand All @@ -116,7 +116,7 @@ - (void) addHelperItemsToMenu:(NSMenu*)menu asSubMenu:(BOOL)submenu {
*/
// open at login, aka openAtLoginMenuItem
[ADD_MENU(@"Open at Login", toggleOpenAtLogin:, nil, self) setState:_launchAtLoginController.launchAtLogin];
NSMenuItem *fraksoftMI = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"DockerInfo by FrakSoft"] action:nil keyEquivalent:@""];
NSMenuItem *fraksoftMI = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"🆔 Docker Info by FrakSoft"] action:nil keyEquivalent:@""];
[targetMenu addItem:fraksoftMI];
[targetMenu addItem:versionMenuitem];

Expand All @@ -128,7 +128,7 @@ - (void) addHelperItemsToMenu:(NSMenu*)menu asSubMenu:(BOOL)submenu {
// ADD_MENU(@"Report an Issue…",openHomepage,@"i",self);
//
// quit menu
ADD_MENU(@"Quit",quit, @"q",self);
ADD_MENU(@"Quit",quit, @"q",self);
}

- (void) quit {
Expand Down
4 changes: 2 additions & 2 deletions App/Dockerinfo-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>v1.0.0_beta-2-g7ebf7dd</string>
<string>v1.0.0_beta-3-g2eb0a48</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>Sep-02-2020 15:47:56</string>
<string>Sep-02-2020 16:00:57</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 4a880fd

Please sign in to comment.