From 587ccd6a0da3a085c4ce58c350b149765fdb237f 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 4c363eee3..f9d2d0ca1 100644 --- a/Base.lproj/MainMenu.xib +++ b/Base.lproj/MainMenu.xib @@ -1875,17 +1875,11 @@ CA - + - - - - - - RepeatAllTransformer @@ -1895,8 +1889,6 @@ CA - - RepeatAlbumTransformer @@ -1906,12 +1898,6 @@ CA - - - - - - RepeatOneTransformer @@ -1921,12 +1907,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]; }