File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -161,13 +161,16 @@ export class DesktopIconView extends EventEmitter {
161
161
}
162
162
} ,
163
163
164
- openEntry : ( { entry} ) => {
164
+ openEntry : ( { entry, forceDialog } ) => {
165
165
if ( entry . isDirectory ) {
166
166
this . core . run ( 'FileManager' , {
167
167
path : entry
168
168
} ) ;
169
169
} else {
170
- this . core . open ( entry , { useDefault : false } ) ;
170
+ this . core . open ( entry , {
171
+ useDefault : true ,
172
+ forceDialog
173
+ } ) ;
171
174
}
172
175
173
176
return { selected : - 1 } ;
@@ -209,13 +212,18 @@ export class DesktopIconView extends EventEmitter {
209
212
}
210
213
211
214
createFileContextMenu ( ev , entry ) {
215
+ const _ = this . core . make ( 'osjs/locale' ) . translate ;
216
+
212
217
this . core . make ( 'osjs/contextmenu' , {
213
218
position : ev ,
214
219
menu : [ {
215
- label : 'Open' ,
216
- onclick : ( ) => this . iconview . openEntry ( ( { entry} ) )
220
+ label : _ ( 'LBL_OPEN' ) ,
221
+ onclick : ( ) => this . iconview . openEntry ( { entry, forceDialog : false } )
222
+ } , {
223
+ label : _ ( 'LBL_OPEN_WITH' ) ,
224
+ onclick : ( ) => this . iconview . openEntry ( { entry, forceDialog : true } )
217
225
} , {
218
- label : 'Remove' ,
226
+ label : _ ( 'LBL_DELETE' ) ,
219
227
onclick : ( ) => this . iconview . removeEntry ( entry )
220
228
} ]
221
229
} ) ;
You can’t perform that action at this time.
0 commit comments