File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,18 @@ async function UIDesktop(options){
243
243
} ) ,
244
244
} ) ;
245
245
} ,
246
+ click : async ( notif ) => {
247
+ if ( notification . template === "file-shared-with-you" ) {
248
+ let item_path = '/' + notification . fields ?. username ;
249
+ UIWindow ( {
250
+ path : '/' + notification . fields ?. username ,
251
+ title : path . basename ( item_path ) ,
252
+ icon : await item_icon ( { is_dir : true , path : item_path } ) ,
253
+ is_dir : true ,
254
+ app : 'explorer' ,
255
+ } ) ;
256
+ }
257
+ } ,
246
258
} ) ;
247
259
}
248
260
} ) ;
@@ -1306,6 +1318,19 @@ async function UIDesktop(options){
1306
1318
}
1307
1319
notification . icon = icon ;
1308
1320
1321
+ notification . click = async ( notif ) => {
1322
+ if ( notification . template === "file-shared-with-you" ) {
1323
+ let item_path = '/' + notification . fields ?. username ;
1324
+ UIWindow ( {
1325
+ path : '/' + notification . fields ?. username ,
1326
+ title : path . basename ( item_path ) ,
1327
+ icon : await item_icon ( { is_dir : true , path : item_path } ) ,
1328
+ is_dir : true ,
1329
+ app : 'explorer' ,
1330
+ } ) ;
1331
+ }
1332
+ }
1333
+
1309
1334
UINotification ( notification ) ;
1310
1335
} )
1311
1336
}
You can’t perform that action at this time.
0 commit comments