1
1
//@ts -ignore
2
2
const Me = imports . misc . extensionUtils . getCurrentExtension ( ) ;
3
3
4
- const { Clutter, Gio, GLib, Meta } = imports . gi ;
5
-
6
4
import * as app_info from 'app_info' ;
7
5
import * as error from 'error' ;
6
+ import * as launch from 'launcher_service' ;
7
+ import * as levenshtein from 'levenshtein' ;
8
8
import * as lib from 'lib' ;
9
9
import * as log from 'log' ;
10
+ import * as plugins from 'launcher_plugins' ;
10
11
import * as result from 'result' ;
11
12
import * as search from 'dialog_search' ;
12
- import * as launch from 'launcher_service' ;
13
- import * as plugins from 'launcher_plugins' ;
14
- import * as levenshtein from 'levenshtein' ;
15
13
16
- import type { ShellWindow } from 'window' ;
17
- import type { Ext } from 'extension' ;
18
14
import type { AppInfo } from 'app_info' ;
15
+ import type { Ext } from 'extension' ;
16
+ import type { ShellWindow } from 'window' ;
17
+
18
+ const { Clutter, Gio, GLib, Meta } = imports . gi
19
19
20
20
const { OK } = result ;
21
21
@@ -42,7 +42,7 @@ export class Launcher extends search.Search {
42
42
desktop_apps : Array < [ string , AppInfo ] >
43
43
service : launch . LauncherService
44
44
last_plugin : null | plugins . Plugin . Source
45
- mode : number ;
45
+ mode : number
46
46
47
47
constructor ( ext : Ext ) {
48
48
let cancel = ( ) => {
@@ -114,14 +114,16 @@ export class Launcher extends search.Search {
114
114
if ( retain ) {
115
115
const generic = app . generic_name ( ) ;
116
116
117
- this . options . push ( new launch . SearchOption (
117
+ const button = new launch . SearchOption (
118
118
app . name ( ) ,
119
119
generic ? generic + " — " + where : where ,
120
120
'application-default-symbolic' ,
121
121
{ gicon : app . icon ( ) } ,
122
122
this . icon_size ( ) ,
123
123
{ app }
124
- ) )
124
+ )
125
+
126
+ this . options . push ( button )
125
127
}
126
128
}
127
129
0 commit comments