Commit 9a6b3b3e authored by Daiki Ueno's avatar Daiki Ueno
Browse files

Update ServerContext#enabled before showing/hiding window.

parent 715c9ca0
......@@ -609,6 +609,7 @@ server_context_set_enabled (ServerContext *context, gboolean enabled)
if (context->enabled == enabled)
return;
context->enabled = enabled;
if (enabled) {
error = NULL;
g_dbus_connection_emit_signal (context->connection,
......@@ -637,7 +638,6 @@ server_context_set_enabled (ServerContext *context, gboolean enabled)
gtk_widget_hide (context->window);
}
}
context->enabled = enabled;
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment