Skip to content

Commit 8ed5a80

Browse files
authored
Center the summary/title when the notification body is empty (ErikReider#517)
1 parent 3f85c45 commit 8ed5a80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/notification/notification.vala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ namespace SwayNotificationCenter {
436436
// Sets the original text
437437
this.body.set_text (text);
438438
}
439+
440+
this.body.set_visible (this.body.get_text ().length > 0);
439441
}
440442

441443
/** Returns the first code found, else null */

0 commit comments

Comments
 (0)