Skip to content

Commit a31e733

Browse files
committed
prefs: Small improvements to app-prefs window
1 parent a01410d commit a31e733

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extension/common/appGestures.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ function getAppIconImage(app: Gio.AppInfoPrototype) {
1919
/** Returns marked escaped text or empty string if text is nullable */
2020
function 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();

0 commit comments

Comments
 (0)