background: Update clock in both preview modes
There is a clock widget both on the desktop preview and the lock screen. Without this change, the clock on the desktop preview is always blank.
This commit is contained in:
parent
92e1abf6f2
commit
ecd27846f8
1 changed files with 1 additions and 4 deletions
|
@ -232,10 +232,6 @@ cc_background_preview_set_property (GObject *object,
|
|||
self->is_lock_screen = g_value_get_boolean (value);
|
||||
gtk_stack_set_visible_child_name (self->stack,
|
||||
self->is_lock_screen ? "lock" : "desktop");
|
||||
if (self->is_lock_screen)
|
||||
start_monitor_time (self);
|
||||
else
|
||||
stop_monitor_time (self);
|
||||
break;
|
||||
|
||||
case PROP_ITEM:
|
||||
|
@ -351,6 +347,7 @@ cc_background_preview_init (CcBackgroundPreview *self)
|
|||
|
||||
update_clock_format (self);
|
||||
load_custom_css (self);
|
||||
start_monitor_time (self);
|
||||
}
|
||||
|
||||
CcBackgroundItem*
|
||||
|
|
Loading…
Add table
Reference in a new issue