Skip to content

Commit 4dbea64

Browse files
committed
fixed seconds not showing on the time applet's vertical mode
1 parent 9db703e commit 4dbea64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cosmic-applet-time/src/window.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ impl cosmic::Application for Window {
490490
.text(format!("{:02}", self.now.month()))
491491
.into(),
492492
);
493-
493+
494494
elements.push(
495495
horizontal_rule(2)
496496
.width(self.core.applet.suggested_size(true).0)
@@ -502,6 +502,10 @@ impl cosmic::Application for Window {
502502

503503
time_bag.hour = Some(components::Numeric::Numeric);
504504
time_bag.minute = Some(components::Numeric::Numeric);
505+
time_bag.second = self
506+
.config
507+
.show_seconds
508+
.then_some(components::Numeric::Numeric);
505509

506510
let hour_cycle = if self.config.military_time {
507511
preferences::HourCycle::H23

0 commit comments

Comments
 (0)