Handled two corner cases and removed two unused variables.
This commit is contained in:
1 parent
52e2131693
commit
0ff70327cb
5 files changed
+5
-5
No files matched your search
@@ -74,7 +74,7 @@ static void *SBItemViewContex = &SBItemViewContex;
|
||||
// Disable the edit button if the item status
|
||||
// is different from ready
|
||||
if ([keyPath isEqualToString:@"item.status"]) {
|
||||
if (self.item.status != SBQueueItemStatusReady) {
|
||||
if (self.item.status != SBQueueItemStatusReady && self.item.status != SBQueueItemStatusEditing) {
|
||||
[self.editButton setEnabled:NO];
|
||||
} else {
|
||||
[self.editButton setEnabled:YES];
|
||||
|
||||
@@ -149,6 +149,9 @@
|
||||
|
||||
- (void)updateSetsMenu:(id)sender {
|
||||
self.sets = [[[SBPresetManager sharedManager].presets mutableCopy] autorelease];
|
||||
if (![self.sets containsObject:[self.options objectForKey:@"SBQueueSet"]]) {
|
||||
[self.options removeObjectForKey:@"SBQueueSet"];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
IBOutlet NSTextField *_countLabel;
|
||||
IBOutlet NSProgressIndicator *_progressIndicator;
|
||||
|
||||
IBOutlet NSScrollView *_tableScrollView;
|
||||
IBOutlet SBTableView *_tableView;
|
||||
|
||||
IBOutlet NSWindow *_detachedWindow;
|
||||
|
||||
@@ -23,7 +23,6 @@ static NSString *fileType = @"mp4";
|
||||
static void *SBQueueContex = &SBQueueContex;
|
||||
|
||||
#define SublerBatchTableViewDataType @"SublerBatchTableViewDataType"
|
||||
#define kOptionsPanelHeight 88
|
||||
|
||||
@interface SBQueueController () <NSPopoverDelegate, NSWindowDelegate, NSTableViewDelegate, NSTableViewDataSource, SBTableViewDelegate>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13D17" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment defaultVersion="1060" identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
|
||||
@@ -11,7 +11,6 @@
|
||||
<outlet property="_detachedWindow" destination="zHc-NF-Zeh" id="Cr1-ha-Wmx"/>
|
||||
<outlet property="_progressIndicator" destination="91" id="Kds-4b-YzV"/>
|
||||
<outlet property="_startItem" destination="xBN-FT-Sv0" id="Pyh-8B-bce"/>
|
||||
<outlet property="_tableScrollView" destination="3" id="AjG-kV-Ymx"/>
|
||||
<outlet property="_tableView" destination="7" id="N5e-Ro-a6f"/>
|
||||
<outlet property="window" destination="1" id="25"/>
|
||||
</connections>
|
||||
|
||||
Reference in new issue
Block a user