mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Merge pull request #238 from stephen-turner/CA-146815
CA-146815 Search tab does not refresh
This commit is contained in:
commit
e5250f1409
@ -52,7 +52,12 @@ namespace XenAdmin.Controls.MainWindowControls
|
||||
SavedSearch, Notifications
|
||||
}
|
||||
|
||||
private NavigationMode currentMode;
|
||||
public NavigationMode currentMode
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
private NotificationsSubMode lastNotificationsMode = NotificationsSubMode.Alerts;
|
||||
|
||||
#region Events
|
||||
@ -295,7 +300,7 @@ namespace XenAdmin.Controls.MainWindowControls
|
||||
navigationView.CurrentSearch = Search;
|
||||
navigationView.NavigationMode = currentMode;
|
||||
navigationView.ResetSeachBox();
|
||||
navigationView.RequestRefreshTreeView();
|
||||
navigationView.RefreshTreeView();
|
||||
navigationView.FocusTreeView();
|
||||
|
||||
if (navigationView.SelectionManager.Selection.Count < 1)
|
||||
|
@ -340,7 +340,8 @@ namespace XenAdmin.Controls.MainWindowControls
|
||||
TreeViewRefreshResumed();
|
||||
}
|
||||
|
||||
private void RefreshTreeView()
|
||||
// Normally you should call RequestRefreshTreeView() instead of this function
|
||||
public void RefreshTreeView()
|
||||
{
|
||||
if (Disposing || IsDisposed || Program.Exiting)
|
||||
return;
|
||||
|
@ -2609,7 +2609,7 @@ namespace XenAdmin
|
||||
/// </summary>
|
||||
private void UpdateHeader()
|
||||
{
|
||||
if (!TheTabControl.Visible)
|
||||
if (navigationPane.currentMode == NavigationPane.NavigationMode.Notifications)
|
||||
return;
|
||||
|
||||
if (SearchMode && SearchPage.Search != null)
|
||||
|
Loading…
Reference in New Issue
Block a user