preserve storage privacy+preference

This commit is contained in:
deepend committed 2026-12-04 18:25:54 -06:00
1 parent 42efb59ee0
commit 4db044814c
1 file changed
+5 -5
+5 -5
View File
@@ -68,7 +68,7 @@ static hwinfo hwinfos[] = {
{"os", "OS", sysinfo_backend_get_os},
{"cpu", "CPU", sysinfo_backend_get_cpu},
{"memory", "Memory", sysinfo_backend_get_memory},
{"storage", "Storage", sysinfo_backend_get_disk},
{"storage", "Storage", sysinfo_backend_get_disk, TRUE},
{"gpu", "GPU", sysinfo_backend_get_gpu},
{"chipset", "Chipset", sysinfo_backend_get_chipset, TRUE},
{"sound", "Sound", sysinfo_backend_get_sound, TRUE},
@@ -192,19 +192,19 @@ sysinfo_set_pref (char *key, char *value)
return;
}
if (!strcmp (key, "announce"))
if (!g_ascii_strcasecmp (key, "announce"))
{
sysinfo_set_pref_real (key, value, DEFAULT_ANNOUNCE);
sysinfo_set_pref_real ("announce", value, DEFAULT_ANNOUNCE);
return;
}
else if (g_str_has_prefix (key, "hide_"))
else if (!g_ascii_strncasecmp (key, "hide_", 5))
{
const char *normalized = normalize_info_name (key + 5);
int i;
for (i = 0; hwinfos[i].name != NULL; i++)
{
if (!strcmp (normalized, hwinfos[i].name))
if (!g_ascii_strcasecmp (normalized, hwinfos[i].name))
{
char canonical[32];