Changed my mind: Turn off the heartbeat icon on the OldTime screen
unconditionally if title is turned off.
This commit is contained in:
@@ -203,7 +203,6 @@ clock_screen(int rep, int display, int *flags_ptr)
|
||||
|
||||
if ((*flags_ptr & INITIALIZED) == 0) {
|
||||
char tmp[257]; /* should be large enough for host name */
|
||||
int disableHeart; /* Disables server heartbeat icon */
|
||||
|
||||
*flags_ptr |= INITIALIZED;
|
||||
|
||||
@@ -211,11 +210,10 @@ clock_screen(int rep, int display, int *flags_ptr)
|
||||
timeFormat = config_get_string("OldTime", "TimeFormat", 0, "%H:%M:%S");
|
||||
dateFormat = config_get_string("OldTime", "DateFormat", 0, "%b %d %Y");
|
||||
showTitle = config_get_bool("OldTime", "ShowTitle", 0, 1);
|
||||
disableHeart = config_get_bool("OldTime", "DisableHeartbeat", 0, 0);
|
||||
|
||||
sock_send_string(sock, "screen_add O\n");
|
||||
sock_printf(sock, "screen_set O -name {Old Clock Screen: %s}\n", get_hostname());
|
||||
if (disableHeart)
|
||||
if (!showTitle)
|
||||
sock_send_string(sock, "screen_set O -heartbeat off\n");
|
||||
sock_send_string(sock, "widget_add O one string\n");
|
||||
if (lcd_hgt >= 4) {
|
||||
|
||||
@@ -106,9 +106,6 @@ DateFormat="%x"
|
||||
# Display the title bar in two-line mode. Note that with four lines or more
|
||||
# the title is always shown. [default: true; legal: true, false]
|
||||
#ShowTitle=false
|
||||
# Disables the heartbeat icon in the top right corner. By default, the server
|
||||
# setting for the heartbeat is used. [default: false; legal: true, false]
|
||||
#DisableHeartbeat=true
|
||||
|
||||
|
||||
[BigClock]
|
||||
|
||||
Reference in New Issue
Block a user