mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[ADD] WIP: Promoted category cards and app list filter button in BrowseView
This commit is contained in:
committed by
Joe Mattiello
parent
5a1496a3cd
commit
c7ce32a562
@@ -62,10 +62,13 @@ class NotificationManager: ObservableObject {
|
||||
detailText = underlyingError?.localizedDescription ?? error.localizedRecoverySuggestion
|
||||
}
|
||||
|
||||
|
||||
self.showNotification(title: text, detailText: detailText)
|
||||
}
|
||||
|
||||
func showNotification(title: String, detailText: String?) {
|
||||
let notificationId = UUID()
|
||||
|
||||
self.notifications[notificationId] = Notification(id: notificationId, title: text, message: detailText)
|
||||
self.notifications[notificationId] = Notification(id: notificationId, title: title, message: detailText)
|
||||
|
||||
let dismissWorkItem = DispatchWorkItem {
|
||||
self.notifications.removeValue(forKey: notificationId)
|
||||
|
||||
Reference in New Issue
Block a user