Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OlzhabaevSh committed Aug 9, 2024
1 parent 94b5d07 commit 75e1a5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions source/Diol/src/Diol.Wpf.Core/MainModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ public class MainModule : IModule
/// <param name="containerProvider">The container provider.</param>
public void OnInitialized(IContainerProvider containerProvider)
{
var applicationStateService = containerProvider.Resolve<IApplicationStateService>();
applicationStateService.Subscribe();

var regionManager = containerProvider.Resolve<IRegionManager>();
regionManager.RegisterViewWithRegion("MainRegion", typeof(Views.WelcomeComponent));
regionManager.RegisterViewWithRegion("MainRegion", typeof(Views.MainComponent));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class MainComponentViewModel : BindableBase
{
private IProcessProvider dotnetService;
private IEventAggregator eventAggregator;
private IApplicationStateService applicationStateService;
private DiolExecutor diolExecutor;

/// <summary>
Expand All @@ -29,11 +30,12 @@ public class MainComponentViewModel : BindableBase
public MainComponentViewModel(
IProcessProvider dotnetService,
IEventAggregator eventAggregator,
IApplicationStateService applicationStateService,
DiolExecutor diolExecutor)
{
this.diolExecutor = diolExecutor;
this.dotnetService = dotnetService;

this.applicationStateService = applicationStateService;
this.eventAggregator = eventAggregator;

this.eventAggregator
Expand All @@ -50,6 +52,8 @@ public MainComponentViewModel(

CanProcess(true);

this.applicationStateService.Subscribe();

this.DebugMenuItemVisibility = Visibility.Hidden;

#if DEBUG
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Metadata>
<Identity Id="DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3" Version="1.8" Language="en-US" Publisher="Diol devs" />
<Identity Id="DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3" Version="1.9" Language="en-US" Publisher="Diol devs" />
<DisplayName>Diol</DisplayName>
<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>
<MoreInfo>https://github.com/Dotnet-IO-logger/core/wiki</MoreInfo>
Expand Down

0 comments on commit 75e1a5b

Please sign in to comment.