From 9cbea8d2e8f14ea4477c21d8fdf14d58ec00f6a9 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Fri, 12 May 2023 16:51:11 +0800 Subject: Fix failed restore of saved sessions --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a474244..c02d14f 100644 --- a/src/main.c +++ b/src/main.c @@ -284,7 +284,7 @@ fr_save_state (EggSMClient *client, GKeyFile *state, gpointer user_data) FrWindow *session = window->data; gchar *key; - key = g_strdup_printf ("archive%d", i); + key = g_strdup_printf ("archive%d", i+1); if ((session->archive == NULL) || (session->archive->file == NULL)) { g_key_file_set_string (state, "Session", key, ""); } -- cgit v1.2.1