Skip to content

Commit b13d0c1

Browse files
2.1.2
1 parent 6d73240 commit b13d0c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TrollTools/Views/Themes/ThemesView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ struct ThemesView: View {
198198
UIApplication.shared.change(title: "In progress", body: str)
199199
})
200200
UINotificationFeedbackGenerator().notificationOccurred(.success)
201-
UIApplication.shared.change(title: "Rebuild Icon Caches", body: "To apply changes, please rebuild icon caches inside TrollStore\n\nElapsed time: \(Double(Int(-timeStart.timeIntervalSinceNow * 100.0)) / 100.0)s")
201+
UIApplication.shared.change(title: "Rebuilding Icon Cache...", body: "Device will respring after rebuild\n\nElapsed time: \(Double(Int(-timeStart.timeIntervalSinceNow * 100.0)) / 100.0)s")
202+
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1, execute: {
203+
try! RootHelper.rebuildIconCache()
204+
})
202205
} catch { UIApplication.shared.change(body: error.localizedDescription) }
203206
}
204207
}
@@ -228,7 +231,6 @@ struct ThemesView: View {
228231
UIApplication.shared.change(title: "Rebuilding Icon Cache...", body: "Device will respring after rebuild")
229232
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1, execute: {
230233
try! RootHelper.rebuildIconCache()
231-
// exit(0) // because it resprings
232234
})
233235
}
234236
}

0 commit comments

Comments
 (0)