spicec: Don't show gui when connection info is specified on the cmdline

Currently when compiled with the gui enabled if you specify a host to connect
to on the cmdline the gui flashes by (show_gui gets called, then the connect
handler calls hide_gui as soon as the connection is made).

This patch removes this ugly flashing by of the gui.
This commit is contained in:
Hans de Goede 2010-11-09 11:45:41 +01:00
parent 8d6b124f2a
commit 0bb53766fa

View File

@ -602,14 +602,12 @@ void Application::on_start_running()
}
//FIXME: _client.connect() or use the following instead?
#ifdef USE_GUI
if (_gui_mode != GUI_MODE_FULL) {
connect();
if (_gui_mode == GUI_MODE_FULL) {
show_gui();
return;
}
show_gui();
#else
connect();
#endif // HAVE_GUI
connect();
}
RedScreen* Application::find_screen(int id)