Remove a lot of loading animation calls

This commit is contained in:
Andrei Zavatski 2019-08-28 01:02:26 +03:00
parent f9841369e8
commit 11df8c5576
1 changed files with 2 additions and 6 deletions

View File

@ -122,16 +122,12 @@ private void updateSearch()
API.Queue(getUsersRequest = userRequest); API.Queue(getUsersRequest = userRequest);
break; break;
} }
loading.Show();
} }
private void recreatePanels(PanelDisplayStyle displayStyle) private void recreatePanels(PanelDisplayStyle displayStyle)
{ {
clearPanels(); clearPanels();
loading.Show();
if (Users == null) if (Users == null)
{ {
loading.Hide(); loading.Hide();
@ -178,8 +174,6 @@ private void recreatePanels(PanelDisplayStyle displayStyle)
private void updateUsers(IEnumerable<User> newUsers) private void updateUsers(IEnumerable<User> newUsers)
{ {
loading.Show();
var sortDirection = Filter.DisplayStyleControl.Dropdown.Current.Value; var sortDirection = Filter.DisplayStyleControl.Dropdown.Current.Value;
IEnumerable<User> sortedUsers = newUsers; IEnumerable<User> sortedUsers = newUsers;
@ -218,6 +212,8 @@ private void onDropdownChanged()
private void clearPanels() private void clearPanels()
{ {
loading.Show();
if (panels != null) if (panels != null)
{ {
panels.Expire(); panels.Expire();