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

Commit

Permalink
Fix Cmdline Region capture
Browse files Browse the repository at this point in the history
  • Loading branch information
MathewSachin committed Oct 11, 2018
1 parent 3e2e9aa commit 0f13fa2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/Captura.Core/Captura.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
<Compile Include="Fakes\FakeMessageProvider.cs" />
<Compile Include="Fakes\FakeNotification.cs" />
<Compile Include="Fakes\FakePreviewWindow.cs" />
<Compile Include="Fakes\FakeRegionItem.cs" />
<Compile Include="Fakes\FakeRegionProvider.cs" />
<Compile Include="Fakes\FakesModule.cs" />
<Compile Include="Fakes\FakeSystemTray.cs" />
Expand All @@ -52,6 +51,7 @@
<Compile Include="Models\ImageWriterItems\ImgurResponse.cs" />
<Compile Include="Models\ImageWriterItems\ImgurUploadResponse.cs" />
<Compile Include="Models\Overlays\CensorOverlay.cs" />
<Compile Include="Models\RegionItem.cs" />
<Compile Include="Settings\Models\CensorOverlaySettings.cs" />
<Compile Include="Settings\Models\ImgurSettings.cs" />
<Compile Include="Models\NoAudioSource.cs" />
Expand Down
3 changes: 3 additions & 0 deletions src/Captura.Core/Fakes/FakeNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ public string SecondaryText

public bool Finished { get; set; }
public bool Success { get; set; }

#pragma warning disable CS0067
public event Action Click;
#pragma warning restore CS0067

public void Remove() { }
}
Expand Down
27 changes: 0 additions & 27 deletions src/Captura.Core/Fakes/FakeRegionItem.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Captura.Core/Fakes/FakeRegionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public bool SelectorVisible

public Rectangle SelectedRegion { get; set; }

public IVideoItem VideoSource => new FakeRegionItem(SelectedRegion);
public IVideoItem VideoSource => new RegionItem(this);

#pragma warning disable CS0067
public event Action SelectorHidden;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using Captura.Models;
using System;
using System;
using System.Drawing;
using Screna;

namespace Captura
namespace Captura.Models
{
class RegionItem : NotifyPropertyChanged, IVideoItem
public class RegionItem : NotifyPropertyChanged, IVideoItem
{
readonly IRegionProvider _selector;

Expand Down
1 change: 0 additions & 1 deletion src/Captura/Captura.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@
<Compile Include="Controls\HotkeySelector.cs" />
<Compile Include="Controls\ModernToggleButton.cs" />
<Compile Include="Controls\ModernButton.cs" />
<Compile Include="Models\RegionItem.cs" />
<Compile Include="Controls\PositionSettingsControl.xaml.cs">
<DependentUpon>PositionSettingsControl.xaml</DependentUpon>
</Compile>
Expand Down

0 comments on commit 0f13fa2

Please sign in to comment.