Skip to content

Commit

Permalink
fix: Improve HR message to imrpove user experience
Browse files Browse the repository at this point in the history
(cherry picked from commit feb0949)
  • Loading branch information
dr1rrb authored and mergify[bot] committed Sep 23, 2024
1 parent 4f271b9 commit 9e23a72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal record EngineEntry() : HotReloadLogEntry(EntrySource.Engine, -1, DateTi
=> (oldStatus?.State ?? HotReloadState.Initializing, status.State) switch
{
( < HotReloadState.Ready, HotReloadState.Ready) => new EngineEntry { Title = "Connected", Icon = EntryIcon.Connection | EntryIcon.Success },
(not HotReloadState.Disabled, HotReloadState.Disabled) => new EngineEntry { Title = "Cannot initialize", Icon = EntryIcon.Connection | EntryIcon.Error },
(not HotReloadState.Disabled, HotReloadState.Disabled) => new EngineEntry { Title = "Cannot initialize with debugger attached", Icon = EntryIcon.Connection | EntryIcon.Error },
_ => null
};
}
Expand Down Expand Up @@ -151,7 +151,7 @@ public enum EntryIcon


[Microsoft.UI.Xaml.Data.Bindable]
internal record HotReloadLogEntry(EntrySource Source, long Id, DateTimeOffset Timestamp) : INotifyPropertyChanged
public record HotReloadLogEntry(EntrySource Source, long Id, DateTimeOffset Timestamp) : INotifyPropertyChanged
{
/// <inheritdoc />
public event PropertyChangedEventHandler? PropertyChanged;
Expand Down

0 comments on commit 9e23a72

Please sign in to comment.