Skip to content

Commit aaa793a

Browse files
committed
fix gui summary
1 parent bf4e449 commit aaa793a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

gnwinfo/summary.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ draw_os(struct nk_context* ctx)
5050
"%s@%s%s%s%s%s",
5151
NWL_NodeAttrGet(g_ctx.system, "Username"),
5252
g_ctx.sys_hostname,
53-
strcmp(NWL_NodeAttrGet(g_ctx.system, "Safe Mode"), NA_BOOL_FALSE) == 0 ? " SafeMode" : "",
54-
strcmp(NWL_NodeAttrGet(g_ctx.system, "BitLocker Boot"), NA_BOOL_FALSE) == 0 ? " BitLocker" : "",
55-
strcmp(NWL_NodeAttrGet(g_ctx.system, "VHD Boot"), NA_BOOL_FALSE) == 0 ? " VHD" : "",
56-
strcmp(NWL_NodeAttrGet(g_ctx.system, "Fast Startup"), NA_BOOL_FALSE) == 0 ? " FastStartup" : "");
53+
strcmp(NWL_NodeAttrGet(g_ctx.system, "Safe Mode"), NA_BOOL_TRUE) == 0 ? " SafeMode" : "",
54+
strcmp(NWL_NodeAttrGet(g_ctx.system, "BitLocker Boot"), NA_BOOL_TRUE) == 0 ? " BitLocker" : "",
55+
strcmp(NWL_NodeAttrGet(g_ctx.system, "VHD Boot"), NA_BOOL_TRUE) == 0 ? " VHD" : "",
56+
strcmp(NWL_NodeAttrGet(g_ctx.system, "Fast Startup"), NA_BOOL_TRUE) == 0 ? " FastStartup" : "");
5757
if (quick_access_button(ctx, GET_PNG(IDR_PNG_EDIT), N_(N__HOSTNAME)))
5858
gnwinfo_init_hostname_window(ctx);
5959
}
@@ -555,9 +555,9 @@ draw_storage(struct nk_context* ctx)
555555
{
556556
cdrom = FALSE;
557557
id = &path[17];
558-
if (strcmp(NWL_NodeAttrGet(disk, "SSD"), NA_BOOL_FALSE) == 0)
558+
if (strcmp(NWL_NodeAttrGet(disk, "SSD"), NA_BOOL_TRUE) == 0)
559559
ssd = " SSD";
560-
if (strcmp(NWL_NodeAttrGet(disk, "Removable"), NA_BOOL_FALSE) == 0)
560+
if (strcmp(NWL_NodeAttrGet(disk, "Removable"), NA_BOOL_TRUE) == 0)
561561
prefix = "RM";
562562
}
563563
else
@@ -675,7 +675,7 @@ draw_network(struct nk_context* ctx)
675675
if (g_ctx.main_flag & MAIN_NET_DETAIL)
676676
{
677677
nk_layout_row(ctx, NK_DYNAMIC, 0, 2, (float[2]) { 0.64f, 0.36f });
678-
strcpy_s(m_buf, MAX_PATH, strcmp(NWL_NodeAttrGet(nw, "DHCP Enabled"), NA_BOOL_FALSE) == 0 ? " DHCP" : "");
678+
strcpy_s(m_buf, MAX_PATH, strcmp(NWL_NodeAttrGet(nw, "DHCP Enabled"), NA_BOOL_TRUE) == 0 ? " DHCP" : "");
679679
if (is_active)
680680
snprintf(m_buf, MAX_PATH, u8"%s \u21c5 %s / %s",
681681
m_buf,

0 commit comments

Comments
 (0)