cleanup: Use more template strings
xgettext got better at recognizing template strings, so we can replace more string concatenations. Alas xgettext is still buggy (surprise, regular expressions are hard), so there are still a handful of holdouts that prevent us from making a complete switch. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/792
This commit is contained in:

committed by
Florian Müllner

parent
2c62e45168
commit
f309d98bc8
@ -210,7 +210,7 @@ class RunDialog extends ModalDialog.ModalDialog {
|
||||
} else {
|
||||
if (input.charAt(0) == '~')
|
||||
input = input.slice(1);
|
||||
path = GLib.get_home_dir() + '/' + input;
|
||||
path = `${GLib.get_home_dir()}/${input}`;
|
||||
}
|
||||
|
||||
if (GLib.file_test(path, GLib.FileTest.EXISTS)) {
|
||||
|
Reference in New Issue
Block a user