mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-06 09:31:16 -04:00
Fix jitter in the GUI when switching from DM guild to any other and back
This commit is contained in:
parent
041086267c
commit
67d41fbdc4
1 changed files with 11 additions and 0 deletions
|
@ -70,6 +70,17 @@ public class DashboardViewModel : PropertyChangedBase
|
||||||
o => o.Current,
|
o => o.Current,
|
||||||
(_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate)
|
(_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.Bind(
|
||||||
|
o => o.SelectedGuild,
|
||||||
|
(_, _) =>
|
||||||
|
{
|
||||||
|
// Reset channels when the selected guild changes, to avoid jitter
|
||||||
|
// due to the channels being asynchronously loaded.
|
||||||
|
AvailableChannels = null;
|
||||||
|
SelectedChannels = null;
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnViewLoaded()
|
public void OnViewLoaded()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue