mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 23:39:51 +01:00
Corrected toggling console paused state when selecting/deselecting the console tabs.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
456cd93db8
commit
5453c0c2ca
@ -294,7 +294,7 @@ namespace XenAdmin
|
||||
else if (SelectionManager.Selection.FirstIs<Host>())
|
||||
ConsolePanel.SetCurrentSource((Host)SelectionManager.Selection.First);
|
||||
|
||||
UnpauseVNC(sender == TheTabControl);
|
||||
ConsolePanel.UnpauseActiveView(sender == TheTabControl);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1903,24 +1903,28 @@ namespace XenAdmin
|
||||
|
||||
if (t == TabPageConsole)
|
||||
{
|
||||
CvmConsolePanel.PauseAllDockedViews();
|
||||
|
||||
if (SelectionManager.Selection.FirstIsRealVM)
|
||||
{
|
||||
ConsolePanel.SetCurrentSource((VM)SelectionManager.Selection.First);
|
||||
UnpauseVNC(e != null && sender == TheTabControl);
|
||||
ConsolePanel.UnpauseActiveView(e != null && sender == TheTabControl);
|
||||
}
|
||||
else if (SelectionManager.Selection.FirstIs<Host>())
|
||||
{
|
||||
ConsolePanel.SetCurrentSource((Host)SelectionManager.Selection.First);
|
||||
UnpauseVNC(e != null && sender == TheTabControl);
|
||||
ConsolePanel.UnpauseActiveView(e != null && sender == TheTabControl);
|
||||
}
|
||||
ConsolePanel.UpdateRDPResolution();
|
||||
}
|
||||
else if (t == TabPageCvmConsole)
|
||||
{
|
||||
ConsolePanel.PauseAllDockedViews();
|
||||
|
||||
if (SelectionManager.Selection.First is SR sr && sr.HasDriverDomain(out var vm))
|
||||
{
|
||||
CvmConsolePanel.SetCurrentSource(vm);
|
||||
UnpauseVNC(e != null && sender == TheTabControl);
|
||||
CvmConsolePanel.UnpauseActiveView(e != null && sender == TheTabControl);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -2143,12 +2147,6 @@ namespace XenAdmin
|
||||
}
|
||||
}
|
||||
|
||||
private void UnpauseVNC(bool focus)
|
||||
{
|
||||
ConsolePanel.UnpauseActiveView(focus);
|
||||
CvmConsolePanel.UnpauseActiveView(focus);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The tabs that may be visible in the main GUI window. Used in SwitchToTab().
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user