Snapshot view: Treeview as default (like in the past)

https://github.com/xcp-ng/xenadmin/issues/62
This commit is contained in:
Alexander Schulz 2018-07-07 01:25:56 +02:00 committed by Konstantina Chremmou
parent 076c9dfb96
commit 66e4382d3b

View File

@ -131,10 +131,10 @@ namespace XenAdmin.TabPages
//Version setup
toolStripMenuItemScheduledSnapshots.Available = toolStripSeparatorView.Available = !Helpers.FeatureForbidden(VM.Connection, Host.RestrictVMSnapshotSchedule);
if (_storedViewsPerVm.ContainsKey(m_VM.opaque_ref) && _storedViewsPerVm[m_VM.opaque_ref] != SnapshotsView.ListView)
TreeViewChecked();
else
if (_storedViewsPerVm.ContainsKey(m_VM.opaque_ref) && _storedViewsPerVm[m_VM.opaque_ref] == SnapshotsView.ListView)
GridViewChecked();
else
TreeViewChecked();
toolStripButtonTreeView.Enabled = true;
toolStripButtonTreeView.ToolTipText = "";