Skip to content

Commit 4fb769e

Browse files
committed
Update edit mode and "No items found." visibility after deleting last playlist item
1 parent 9eac5e1 commit 4fb769e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

XBMC Remote/NowPlaying.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,11 @@ - (void)tableView:(UITableView*)tableView commitEditingStyle:(UITableViewCellEdi
22422242
else {
22432243
[Utilities showMessage:LOCALIZED_STR(@"Cannot do that") color:ERROR_MESSAGE_COLOR];
22442244
}
2245+
// Are there still editable entries?
2246+
if (playlistData.count == 0) {
2247+
editTableButton.selected = editTableButton.enabled = NO;
2248+
[Utilities alphaView:noFoundView AnimDuration:0.2 Alpha:1.0];
2249+
}
22452250
}];
22462251
}
22472252
}

0 commit comments

Comments
 (0)