fix: check that status layouts aren't unset

This commit is contained in:
Anna 2020-07-31 16:59:15 -04:00
parent 58de3e9a9e
commit a003072599
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ namespace HudSwap {
continue;
}
Status status = ORDER[i];
if (this.plugin.Config.StatusLayouts.TryGetValue(status, out Guid statusLayout)) {
if (this.plugin.Config.StatusLayouts.TryGetValue(status, out Guid statusLayout) && statusLayout != Guid.Empty) {
layout = statusLayout;
}
}