Skip to content

Commit

Permalink
fix for #40 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlzhabaevSh authored Aug 9, 2024
1 parent 422d8c4 commit 94b5d07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 47 deletions.
38 changes: 0 additions & 38 deletions build.yml

This file was deleted.

7 changes: 5 additions & 2 deletions source/Diol/src/Diol.Wpf.Core/MainModule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Prism.Ioc;
using Diol.Share.Services;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

Expand All @@ -15,8 +16,10 @@ public class MainModule : IModule
/// <param name="containerProvider">The container provider.</param>
public void OnInitialized(IContainerProvider containerProvider)
{
var regionManager = containerProvider.Resolve<IRegionManager>();
var applicationStateService = containerProvider.Resolve<IApplicationStateService>();
applicationStateService.Subscribe();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,23 @@ public class MainComponentViewModel : BindableBase
{
private IProcessProvider dotnetService;
private IEventAggregator eventAggregator;
private IApplicationStateService applicationStateService;
private DiolExecutor diolExecutor;

/// <summary>
/// Initializes a new instance of the <see cref="MainComponentViewModel"/> class.
/// </summary>
/// <param name="dotnetService">The dotnet service.</param>
/// <param name="eventAggregator">The event aggregator.</param>
/// <param name="applicationStateService">The application state service.</param>
/// <param name="diolExecutor">The Diol executor.</param>
public MainComponentViewModel(
IProcessProvider dotnetService,
IEventAggregator eventAggregator,
IApplicationStateService applicationStateService,
DiolExecutor diolExecutor)
{
this.diolExecutor = diolExecutor;
this.dotnetService = dotnetService;

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

this.eventAggregator
.GetEvent<DebugModeRunnedEvent>()
Expand All @@ -52,8 +48,6 @@ public MainComponentViewModel(
.GetEvent<ProcessFinished>()
.Subscribe(ProcessFinishedEventHandler, ThreadOption.UIThread);

this.applicationStateService.Subscribe();

CanProcess(true);

this.DebugMenuItemVisibility = Visibility.Hidden;
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.7" Language="en-US" Publisher="Diol devs" />
<Identity Id="DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3" Version="1.8" 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 94b5d07

Please sign in to comment.