Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
few fixes to wpf
Browse files Browse the repository at this point in the history
  • Loading branch information
j2ghz committed Aug 15, 2018
1 parent 4575379 commit 674af3a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/ModSink.WPF/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ private void SetupLogging()
"{Timestamp:o} {Level:u3} [{SourceContext}-{ThreadId}] {Message} {Properties}{NewLine}{Exception}")
.Enrich.FromLogContext()
.Enrich.WithThreadId()
.Enrich.With<ExceptionEnricher>()
.MinimumLevel.Verbose()
.CreateLogger();
Log.Information("Log initialized");
Expand Down
16 changes: 0 additions & 16 deletions src/ModSink.WPF/Helpers/ExceptionEnricher.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/ModSink.WPF/ViewModel/AppBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public AppBootstrapper()
Locator.CurrentMutable.RegisterConstant(modsink);
var cs = modsink.Client;
DownloadsVM = new DownloadsViewModel(cs);
LibraryVM = new LibraryViewModel(cs);
LibraryVM = new LibraryViewModel(cs.Modpacks);
SettingsVM = new SettingsViewModel(new SettingsModel(cs));
}

Expand Down
5 changes: 2 additions & 3 deletions src/ModSink.WPF/ViewModel/LibraryViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Anotar.Serilog;
using DynamicData;
using DynamicData.Binding;
using ModSink.Common.Client;
using ModSink.Common.Models.Repo;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
Expand All @@ -12,9 +11,9 @@ namespace ModSink.WPF.ViewModel
{
public class LibraryViewModel : ReactiveObject
{
public LibraryViewModel(ClientService clientService)
public LibraryViewModel(IConnectableCache<Modpack, Guid> modpacks)
{
clientService.Modpacks.Connect()
modpacks.Connect()
.ObserveOn(RxApp.MainThreadScheduler)
.Bind(Modpacks)
.Subscribe();
Expand Down

0 comments on commit 674af3a

Please sign in to comment.