Unverified Commit a90528ee authored by giskard's avatar giskard Committed by GitHub

fix: no convert upper case for the first character (#512)

maybe non-ascii
parent 96eca864
......@@ -168,7 +168,7 @@ namespace SwayNotificationCenter {
// Set name_id
this.name_id = this.desktop_entry ?? this.app_name ?? "";
// Set display_name and make the first letter upper case
// Set display_name
string ? display_name = this.desktop_entry ?? this.app_name;
if (desktop_app_info != null) {
display_name = desktop_app_info.get_display_name ();
......@@ -176,7 +176,7 @@ namespace SwayNotificationCenter {
if (display_name == null || display_name.length == 0) {
display_name = "Unknown";
}
this.display_name = display_name.splice (0, 1, display_name.up (1));
this.display_name = display_name;
}
private void parse_hints () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment