From 20531b2d04af7d0e72d5710df0787e8deaa9705d Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 29 Jul 2023 00:55:14 -0700 Subject: [PATCH] Fix Repeat menu being disabled, change default Default repeat mode should now be Repeat All, and the menu items should now all function, fixed by removing a bunch of pointless attributes from each affected menu item. Fixes #371 Signed-off-by: Christopher Snowhill --- Base.lproj/MainMenu.xib | 22 +--------------------- Playlist/PlaylistController.m | 2 +- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/Base.lproj/MainMenu.xib b/Base.lproj/MainMenu.xib index a3df60c01..7e795893f 100644 --- a/Base.lproj/MainMenu.xib +++ b/Base.lproj/MainMenu.xib @@ -1919,17 +1919,11 @@ CA - + - - - - - - RepeatAllTransformer @@ -1939,8 +1933,6 @@ CA - - RepeatAlbumTransformer @@ -1950,12 +1942,6 @@ CA - - - - - - RepeatOneTransformer @@ -1965,12 +1951,6 @@ CA - - - - - - RepeatNoneTransformer diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index 9306f0419..64f2df006 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -98,7 +98,7 @@ static void *playlistControllerContext = &playlistControllerContext; } - (void)initDefaults { - NSDictionary *defaultsDictionary = @{ @"repeat": @(RepeatModeNoRepeat), @"shuffle": @(ShuffleOff) }; + NSDictionary *defaultsDictionary = @{ @"repeat": @(RepeatModeRepeatAll), @"shuffle": @(ShuffleOff) }; [[NSUserDefaults standardUserDefaults] registerDefaults:defaultsDictionary]; }