Skip to content

Commit 6f06212

Browse files
committed
タブヘッダーが空の場合に例外が発生する問題の対応
1 parent fba0812 commit 6f06212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RemoteLogViewer.Core/ViewModels/LogViewerViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public LogViewerViewModel(SshServerSelectorViewModel sshServerSelectorViewModel,
5353
.SelectedSshConnectionInfo
5454
.ObservePropertyChanged(x => x.Value)
5555
.Subscribe(x => {
56-
this.Title.Value = $"{x?.Name.Value ?? string.Empty}";
56+
this.Title.Value = string.IsNullOrEmpty(x?.Name.Value) ? "New Log Tab" : x.Name.Value;
5757
}).AddTo(this.CompositeDisposable);
5858

5959
_ = sshSessionModel.IsConnected.Subscribe(isConnected => {

0 commit comments

Comments
 (0)