File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,13 @@ function getAppIconImage(app: Gio.AppInfoPrototype) {
1919/** Returns marked escaped text or empty string if text is nullable */
2020function markup_escape_text ( text ?: string | null ) {
2121 text = text ?? '' ;
22- const length = new TextEncoder ( ) . encode ( text ) . length ;
2322 try {
24- return GLib . markup_escape_text ( text , length ) ;
23+ return GLib . markup_escape_text ( text , - 1 ) ;
2524 // eslint-disable-next-line @typescript-eslint/no-explicit-any
2625 } catch ( e : any ) {
2726 // TODO: see what exactly is error and fix it
2827 // probably errors in different language or app name
29- printStack ( `Error: '${ e ?. message ?? e } ' while escaping app name for app(${ text } ) with buffer length( ${ length } )` ) ;
28+ printStack ( `Error: '${ e ?. message ?? e } ' while escaping app name for app(${ text } ))` ) ;
3029 return text ;
3130 }
3231}
@@ -51,11 +50,12 @@ const AppChooserDialog = registerClass(
5150 modal : true ,
5251 transientFor : parent ,
5352 destroyWithParent : false ,
53+ title : 'Select application' ,
5454 } ) ;
5555
5656 this . set_default_size (
57- 0.5 * parent . defaultWidth ,
58- 0.6 * parent . defaultHeight ,
57+ 0.7 * parent . defaultWidth ,
58+ 0.7 * parent . defaultHeight ,
5959 ) ;
6060
6161 this . _group = new Adw . PreferencesGroup ( ) ;
You can’t perform that action at this time.
0 commit comments