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];
|
||||
|
||||
Reference in new issue
Block a user