diff options
author | Bernhard Roth <broth@roth-itk.de> | 2021-10-19 16:29:59 +0300 |
---|---|---|
committer | Bernhard Roth <broth@roth-itk.de> | 2021-10-19 16:29:59 +0300 |
commit | 3238e142eba03106643477ce65a91c525084b71b (patch) | |
tree | 6ab5bc139a0add45b3b922e2478d8a15d039ee90 | |
parent | 93bb31fdf9bff42e02638f9e46f284cdd8b069f8 (diff) |
Main window position reset after opening a connection (issue 2587)
-rw-r--r-- | src/remmina_file.c | 3 | ||||
-rw-r--r-- | src/remmina_pref.c | 5 | ||||
-rw-r--r-- | src/remmina_pref.h | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/remmina_file.c b/src/remmina_file.c index f07370e9a..2a439ff5d 100644 --- a/src/remmina_file.c +++ b/src/remmina_file.c @@ -691,7 +691,8 @@ void remmina_file_save(RemminaFile *remminafile) g_free(content); g_key_file_free(gkeyfile); - remmina_main_update_file_datetime(remminafile); + if (!remmina_pref.list_refresh_workaround) + remmina_main_update_file_datetime(remminafile); } void remmina_file_store_secret_plugin_password(RemminaFile *remminafile, const gchar *key, const gchar *value) diff --git a/src/remmina_pref.c b/src/remmina_pref.c index 09b391be0..9a9af01cc 100644 --- a/src/remmina_pref.c +++ b/src/remmina_pref.c @@ -504,6 +504,11 @@ void remmina_pref_init(void) else remmina_pref.dark_theme = FALSE; + if (g_key_file_has_key(gkeyfile, "remmina_pref", "list_refresh_workaround", NULL)) + remmina_pref.list_refresh_workaround = g_key_file_get_boolean(gkeyfile, "remmina_pref", "list_refresh_workaround", NULL); + else + remmina_pref.list_refresh_workaround = FALSE; + if (g_key_file_has_key(gkeyfile, "remmina_pref", "grab_color_switch", NULL)) remmina_pref.grab_color_switch = g_key_file_get_boolean(gkeyfile, "remmina_pref", "grab_color_switch", NULL); else diff --git a/src/remmina_pref.h b/src/remmina_pref.h index 6edb4d63f..e93fd5c9b 100644 --- a/src/remmina_pref.h +++ b/src/remmina_pref.h @@ -129,6 +129,7 @@ typedef struct _RemminaPref { gchar * keystrokes; /* In RemminaPrefDialog appearance tab */ gboolean dark_theme; + gboolean list_refresh_workaround; gboolean fullscreen_on_auto; gboolean always_show_tab; gboolean hide_connection_toolbar; |