Skip to content

Commit 1e1d93d

Browse files
committed
UI improvements
1 parent 6ae21cf commit 1e1d93d

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

CategoryTableController.m

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@
1212
#import "KKRow.h"
1313
#import "CategoryTableController.h"
1414

15+
/* GLOBALS */
16+
17+
//query VT
18+
extern BOOL queryVT;
19+
1520
@implementation CategoryTableController
1621

1722
@synthesize selectedRow;
1823
@synthesize tableContents;
1924
@synthesize categoryTableView;
2025

2126
//invoked automatically while nib is loaded
22-
// ->note: outlets are nil here :/
2327
-(id)init
2428
{
2529
self = [super init];
@@ -82,8 +86,7 @@ -(NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn
8286
itemsInCategory = plugin.allItems.count;
8387

8488
//check if any item is flagged
85-
if( (YES != ((AppDelegate*)[[NSApplication sharedApplication] delegate]).prefsWindowController.disableVTQueries) &&
86-
(0 != plugin.flaggedItems.count) )
89+
if(queryVT && plugin.flaggedItems.count)
8790
{
8891
//set flag
8992
hasFlaggedItem = YES;
@@ -97,7 +100,7 @@ -(NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn
97100
itemsInCategory = plugin.untrustedItems.count;
98101

99102
//check if any item is flagged
100-
if(YES != ((AppDelegate*)[[NSApplication sharedApplication] delegate]).prefsWindowController.disableVTQueries)
103+
if(queryVT)
101104
{
102105
//sync
103106
@synchronized (plugin.untrustedItems) {

ItemTableController.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020

2121
#import <AppKit/AppKit.h>
2222

23+
/* GLOBALS */
24+
25+
//should query VT
26+
extern BOOL queryVT;
27+
2328
@implementation ItemTableController
2429

2530
@synthesize noItemsLabel;
@@ -86,7 +91,7 @@ -(NSInteger)numberOfRowsInTableView:(NSTableView *)tableView
8691
self.noItemsLabel.backgroundColor = [NSColor clearColor];
8792

8893
//font
89-
self.noItemsLabel.font = [NSFont fontWithName:@"Menlo-Regular" size:13];
94+
self.noItemsLabel.font = [NSFont fontWithName:@"Menlo-Regular" size:15];
9095

9196
//center text
9297
self.noItemsLabel.alignment = NSCenterTextAlignment;
@@ -366,7 +371,7 @@ -(NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn
366371

367372
//configure/show VT info
368373
// ->only if 'disable' preference not set
369-
if(YES != ((AppDelegate*)[[NSApplication sharedApplication] delegate]).prefsWindowController.disableVTQueries)
374+
if(queryVT)
370375
{
371376
//set button delegate
372377
vtButton.delegate = self;

KnockKnock.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@
11411141
CODE_SIGN_IDENTITY = "Developer ID Application";
11421142
CODE_SIGN_STYLE = Manual;
11431143
COMBINE_HIDPI_IMAGES = YES;
1144-
CURRENT_PROJECT_VERSION = 4.0.2;
1144+
CURRENT_PROJECT_VERSION = 4.0.3;
11451145
DEVELOPMENT_TEAM = VBG97UB4TA;
11461146
ENABLE_HARDENED_RUNTIME = YES;
11471147
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1156,7 +1156,7 @@
11561156
"$(PROJECT_DIR)/Libraries/BTM",
11571157
);
11581158
MACOSX_DEPLOYMENT_TARGET = 10.15;
1159-
MARKETING_VERSION = 4.0.2;
1159+
MARKETING_VERSION = 4.0.3;
11601160
ONLY_ACTIVE_ARCH = NO;
11611161
PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.${PRODUCT_NAME:rfc1034identifier}";
11621162
PRODUCT_NAME = KnockKnock;
@@ -1173,7 +1173,7 @@
11731173
CODE_SIGN_IDENTITY = "Developer ID Application";
11741174
CODE_SIGN_STYLE = Manual;
11751175
COMBINE_HIDPI_IMAGES = YES;
1176-
CURRENT_PROJECT_VERSION = 4.0.2;
1176+
CURRENT_PROJECT_VERSION = 4.0.3;
11771177
DEVELOPMENT_TEAM = VBG97UB4TA;
11781178
ENABLE_HARDENED_RUNTIME = YES;
11791179
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1188,7 +1188,7 @@
11881188
"$(PROJECT_DIR)/Libraries/BTM",
11891189
);
11901190
MACOSX_DEPLOYMENT_TARGET = 10.15;
1191-
MARKETING_VERSION = 4.0.2;
1191+
MARKETING_VERSION = 4.0.3;
11921192
ONLY_ACTIVE_ARCH = NO;
11931193
PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.${PRODUCT_NAME:rfc1034identifier}";
11941194
PRODUCT_NAME = KnockKnock;

Results/File.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* GLOBALS */
1818

19-
//cmdline scab
19+
//should query VT
2020
extern BOOL queryVT;
2121

2222
@implementation File

0 commit comments

Comments
 (0)