File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -920,6 +920,7 @@ async function checkUpdates() {
920920 {
921921 label: formatMessage (updatePopupMessages .changelog ),
922922 action : () => openUrl (' https://modrinth.com/news/changelog?filter=app' ),
923+ keepOpen: true ,
923924 },
924925 ],
925926 })
@@ -1002,6 +1003,7 @@ async function downloadUpdate(versionToDownload) {
10021003 {
10031004 label: formatMessage (updatePopupMessages .changelog ),
10041005 action : () => openUrl (' https://modrinth.com/news/changelog?filter=app' ),
1006+ keepOpen: true ,
10051007 },
10061008 ],
10071009 })
Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ const dismiss = (id: string | number) => popupNotificationManager.removeNotifica
130130
131131function handleButtonClick(id : string | number , btn : PopupNotificationButton ) {
132132 btn .action ()
133- popupNotificationManager .removeNotification (id )
133+ if (! btn .keepOpen ) {
134+ popupNotificationManager .removeNotification (id )
135+ }
134136}
135137
136138function progressColorForType(type : PopupNotification [' type' ]) {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export interface PopupNotificationButton {
44 label : string
55 action : ( ) => void
66 color ?: 'brand' | 'red' | 'orange' | 'green' | 'blue' | 'standard'
7+ keepOpen ?: boolean
78}
89
910export interface PopupNotificationProgressItem {
You can’t perform that action at this time.
0 commit comments