Files
nixpkgs/pkgs/by-name/ha/hardinfo2/default-no-theme.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

14 lines
658 B
Diff

diff --git a/shell/shell.c b/shell/shell.c
index 76523e9a..dbfe2d16 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -620,7 +620,7 @@ static void create_window(void)
gchar *conf_path = g_build_filename(g_get_user_config_dir(), "hardinfo2","settings.ini", NULL);
g_key_file_load_from_file(key_file, conf_path, G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS, NULL);
params.theme = g_key_file_get_integer(key_file, "Theme", "ThemeNumber", NULL);
- if(params.theme==0) params.theme=1;
+ if(params.theme==0) params.theme=-1; //default to no theme
if(params.theme<-1) params.theme=-1;
if(params.theme>6) params.theme=-1;