mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 14:54:14 +00:00
src: update action sensitivity when creating window
If we don't explicitly set action sensitivity after associating a display with the window, the actions will end up with the wrong state. This exhibits itself as send key actions being marked disabled despite being connected, Related: https://gitlab.com/virt-viewer/virt-viewer/-/issues/37 Closes: https://gitlab.com/virt-viewer/virt-viewer/-/issues/41 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
4820d05c82
commit
aa6b4b40b8
@ -1231,6 +1231,8 @@ ensure_window_for_display(VirtViewerApp *self, VirtViewerDisplay *display)
|
||||
g_object_set_data(G_OBJECT(display), "virt-viewer-window", win);
|
||||
g_object_weak_ref(G_OBJECT(win), window_weak_notify, display);
|
||||
}
|
||||
|
||||
virt_viewer_window_set_actions_sensitive(win, priv->connected);
|
||||
}
|
||||
virt_viewer_app_set_window_subtitle(self, win, nth);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user