From f90a24cc5b37d86c3fc1f271808c5d556056735b Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 17 Nov 2020 17:41:25 -0300 Subject: [PATCH] Toggle should be the last options to load from key file to avoid triger of autostart withou host info. --- src/terminal/keyfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/terminal/keyfile.c b/src/terminal/keyfile.c index 11696e1..a26750b 100644 --- a/src/terminal/keyfile.c +++ b/src/terminal/keyfile.c @@ -363,10 +363,6 @@ } - // Load Toggles - for(ix = 0; ix < G_N_ELEMENTS(klass->properties.toggle); ix++) - load_by_pspec(widget,klass->properties.toggle[ix],key_file,group_name); - // Load V3270 properties for(ix = 0; klass->properties.persistent[ix];ix++) { @@ -379,6 +375,10 @@ } + // Load Toggles + for(ix = 0; ix < G_N_ELEMENTS(klass->properties.toggle); ix++) + load_by_pspec(widget,klass->properties.toggle[ix],key_file,group_name); + g_object_thaw_notify(G_OBJECT(widget)); terminal->freeze = 0; -- libgit2 0.21.2