Skip to content

Commit

Permalink
Improve form text when no logs are available
Browse files Browse the repository at this point in the history
  • Loading branch information
awaescher committed Aug 31, 2022
1 parent 5291170 commit 0a180cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Fusion++/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ private async Task LoadLogsAsync(ILogStore logStore)
else
SetOverlayState(OverlayState.Empty);

Text = $"{logStore.GetLogName(logStore.Path)} - {GetAppNameWithVersion()}";
var logName = logStore.GetLogName(logStore.Path);
Text = string.IsNullOrEmpty(logName) ? GetAppNameWithVersion() : $"{logName} - {GetAppNameWithVersion()}";
}

private bool Validate(IEnumerable<LogItem> logs)
Expand Down

0 comments on commit 0a180cf

Please sign in to comment.