Refresh Store On Load
This commit is contained in:
parent
66eb9b91e8
commit
4bd2f0028f
1
qtc-net-client-2/Forms/Main.Designer.cs
generated
1
qtc-net-client-2/Forms/Main.Designer.cs
generated
@ -113,7 +113,6 @@
|
||||
tbcMain.SelectedIndex = 0;
|
||||
tbcMain.Size = new Size(352, 499);
|
||||
tbcMain.TabIndex = 0;
|
||||
tbcMain.SelectedIndexChanged += tbcMain_SelectedIndexChanged;
|
||||
//
|
||||
// tbpContacts
|
||||
//
|
||||
|
||||
@ -367,9 +367,7 @@ namespace qtc_net_client_2
|
||||
donationWindow.Show();
|
||||
}
|
||||
|
||||
private async void tbcMain_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (tbcMain.SelectedIndex == 4)
|
||||
private async Task RefreshStore()
|
||||
{
|
||||
// get store items
|
||||
var storeItems = await _apiService.GetStoreItems();
|
||||
@ -390,7 +388,6 @@ namespace qtc_net_client_2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async void ApplyStoreItems(IEnumerable<StoreItem> storeItems)
|
||||
{
|
||||
@ -666,6 +663,8 @@ namespace qtc_net_client_2
|
||||
llblEditProfile.Visible = true;
|
||||
tbcMain.Enabled = true;
|
||||
|
||||
await RefreshStore();
|
||||
|
||||
var pfpRes = await _apiService.GetUserProfilePic(_apiService.CurrentUser.Id);
|
||||
var cosmeticRes = await GetCosmeticImage(_apiService.CurrentUser.ActiveProfileCosmetic);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user