mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-03 15:58:43 +00:00
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:
parent
8d6b124f2a
commit
0bb53766fa
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user