1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 22:51:39 +00:00

[#188 state:fixed] Instead of showing a crash report on iTunes communication problems, show a friendlier message.

This commit is contained in:
Virgil Dupras
2012-03-09 11:34:08 -05:00
parent 22de2d803a
commit 5fb7742cf4
5 changed files with 27 additions and 26 deletions

View File

@@ -74,22 +74,4 @@ http://www.hardcoded.net/licenses/bsd_license
{
[model scanDeadTracks];
}
/* Notifications */
- (void)jobCompleted:(NSNotification *)aNotification
{
[super jobCompleted:aNotification];
id lastAction = [[ProgressController mainProgressController] jobId];
if ([lastAction isEqualTo:jobScanDeadTracks]) {
NSInteger deadTrackCount = [model deadTrackCount];
if (deadTrackCount > 0) {
NSString *msg = TR(@"Your iTunes Library contains %d dead tracks ready to be removed. Continue?");
if ([Dialogs askYesNo:[NSString stringWithFormat:msg,deadTrackCount]] == NSAlertFirstButtonReturn)
[model removeDeadTracks];
}
else {
[Dialogs showMessage:TR(@"You have no dead tracks in your iTunes Library")];
}
}
}
@end