Skip to content

Commit 75e1a5b

Browse files
committed
fix bug
1 parent 94b5d07 commit 75e1a5b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

source/Diol/src/Diol.Wpf.Core/MainModule.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ public class MainModule : IModule
1616
/// <param name="containerProvider">The container provider.</param>
1717
public void OnInitialized(IContainerProvider containerProvider)
1818
{
19-
var applicationStateService = containerProvider.Resolve<IApplicationStateService>();
20-
applicationStateService.Subscribe();
21-
2219
var regionManager = containerProvider.Resolve<IRegionManager>();
23-
regionManager.RegisterViewWithRegion("MainRegion", typeof(Views.WelcomeComponent));
20+
regionManager.RegisterViewWithRegion("MainRegion", typeof(Views.MainComponent));
2421
}
2522

2623
/// <summary>

source/Diol/src/Diol.Wpf.Core/ViewModels/MainComponentViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class MainComponentViewModel : BindableBase
1818
{
1919
private IProcessProvider dotnetService;
2020
private IEventAggregator eventAggregator;
21+
private IApplicationStateService applicationStateService;
2122
private DiolExecutor diolExecutor;
2223

2324
/// <summary>
@@ -29,11 +30,12 @@ public class MainComponentViewModel : BindableBase
2930
public MainComponentViewModel(
3031
IProcessProvider dotnetService,
3132
IEventAggregator eventAggregator,
33+
IApplicationStateService applicationStateService,
3234
DiolExecutor diolExecutor)
3335
{
3436
this.diolExecutor = diolExecutor;
3537
this.dotnetService = dotnetService;
36-
38+
this.applicationStateService = applicationStateService;
3739
this.eventAggregator = eventAggregator;
3840

3941
this.eventAggregator
@@ -50,6 +52,8 @@ public MainComponentViewModel(
5052

5153
CanProcess(true);
5254

55+
this.applicationStateService.Subscribe();
56+
5357
this.DebugMenuItemVisibility = Visibility.Hidden;
5458

5559
#if DEBUG

source/Diol/src/applications/DiolVSIX/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3" Version="1.8" Language="en-US" Publisher="Diol devs" />
4+
<Identity Id="DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3" Version="1.9" Language="en-US" Publisher="Diol devs" />
55
<DisplayName>Diol</DisplayName>
66
<Description xml:space="preserve">Dotnet Input-Output Logger (Diol) is a free and open-source tool you can easily see and explore logs during debugging your dotnet application in real time.</Description>
77
<MoreInfo>https://github.com/Dotnet-IO-logger/core/wiki</MoreInfo>

0 commit comments

Comments
 (0)