From e8c4c06d33256680017593f9550e582ec284d62e Mon Sep 17 00:00:00 2001 From: relikd Date: Mon, 31 Aug 2020 21:11:17 +0200 Subject: [PATCH] Fix an issue where indices weren't updated, related to #6 --- baRSS/Core Data/FeedGroup+Ext.m | 7 ++++--- baRSS/Info.plist | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/baRSS/Core Data/FeedGroup+Ext.m b/baRSS/Core Data/FeedGroup+Ext.m index 2ad6358..68e7c49 100644 --- a/baRSS/Core Data/FeedGroup+Ext.m +++ b/baRSS/Core Data/FeedGroup+Ext.m @@ -89,10 +89,11 @@ - (void)setSortIndexIfChanged:(int32_t)sortIndex { if (self.sortIndex != sortIndex) { self.sortIndex = sortIndex; - [self iterateSorted:NO overDescendantFeeds:^(Feed *feed, BOOL *cancel) { - [feed calculateAndSetIndexPathString]; - }]; } + // Otherwise move from 0.0 -> 0 will not trigger index path update + [self iterateSorted:NO overDescendantFeeds:^(Feed *feed, BOOL *cancel) { + [feed calculateAndSetIndexPathString]; + }]; } /// Set @c name attribute but only if value differs. diff --git a/baRSS/Info.plist b/baRSS/Info.plist index b2cdfec..1c81400 100644 --- a/baRSS/Info.plist +++ b/baRSS/Info.plist @@ -45,7 +45,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.1.0 + 1.1.1 CFBundleURLTypes @@ -70,7 +70,7 @@ CFBundleVersion - 14620 + 14624 LSApplicationCategoryType public.app-category.news LSMinimumSystemVersion