DeclarativeProperty nullability fixes
This commit is contained in:
@@ -8,6 +8,6 @@ public interface IMainWindowViewModelBase
|
||||
DeclarativeProperty<string> Title { get; }
|
||||
bool Loading { get; }
|
||||
IObservable<string?> MainFont { get; }
|
||||
DeclarativeProperty<string> FatalError { get; }
|
||||
DeclarativeProperty<string?> FatalError { get; }
|
||||
IReadOnlyList<WindowTransparencyLevel> TransparencyLevelHint { get; }
|
||||
}
|
||||
@@ -9,6 +9,6 @@ public class MainWindowLoadingViewModel : IMainWindowViewModelBase
|
||||
public bool Loading => true;
|
||||
public IObservable<string?> MainFont { get; } = new BehaviorSubject<string?>("");
|
||||
public DeclarativeProperty<string> Title { get; } = new("Loading...");
|
||||
public DeclarativeProperty<string> FatalError { get; } = new();
|
||||
public DeclarativeProperty<string?> FatalError { get; } = new(null);
|
||||
public IReadOnlyList<WindowTransparencyLevel> TransparencyLevelHint { get; } = new[] {WindowTransparencyLevel.AcrylicBlur};
|
||||
}
|
||||
@@ -53,10 +53,10 @@ public partial class MainWindowViewModel : IMainWindowViewModel
|
||||
private readonly OcConsumer _rootDriveInfosConsumer = new();
|
||||
public bool Loading => false;
|
||||
public IObservable<string?> MainFont => _fontService.MainFont.Select(x => x ?? "");
|
||||
public DeclarativeProperty<string> FatalError { get; } = new();
|
||||
public DeclarativeProperty<string?> FatalError { get; } = new(null);
|
||||
public IReadOnlyList<WindowTransparencyLevel> TransparencyLevelHint { get; } = new[] {WindowTransparencyLevel.Blur};
|
||||
public IGuiAppState AppState => _appState;
|
||||
public DeclarativeProperty<string> Title { get; } = new();
|
||||
public DeclarativeProperty<string> Title { get; } = new(string.Empty);
|
||||
public Thickness IconStatusPanelMargin { get; private set; } = new(20, 10, 10, 10);
|
||||
public Action? FocusDefaultElement { get; set; }
|
||||
public Action? ShowWindow { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user