From 8a68068ce75cf5157835440c3493c88114a44aeb Mon Sep 17 00:00:00 2001 From: anynon <40039364+anynon@users.noreply.github.com> Date: Sat, 8 Feb 2020 17:22:06 -0500 Subject: [PATCH] Remove what appears to be unneeded I'm not sure why this code is needed as the tweaks appears to work perfectly without it. --- Dockify.xm | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Dockify.xm b/Dockify.xm index 465b28a..9641a70 100755 --- a/Dockify.xm +++ b/Dockify.xm @@ -110,16 +110,6 @@ HBPreferences *preferences; } } %end -%hook SBDockIconListView - -- (NSUInteger)iconColumnsForCurrentOrientation { - if (hidden) { - return (0); - } else { - return (setIconNumber); - } -} -%end //fix for icons being off the page ios 13 %hook SBIconListGridLayoutConfiguration @@ -132,7 +122,7 @@ HBPreferences *preferences; NSUInteger rows = MSHookIvar(self, "_numberOfPortraitRows"); NSUInteger columns = MSHookIvar(self, "_numberOfPortraitColumns"); // dock - if (rows <= 2 && columns == 4) { + if (rows < 2) { self.location = @"Dock"; } else if (rows == 3 && columns == 3) { self.location = @"Folder";