Removed Operation.OperationType
- Since OperationType instanciates two new operation this results in a stack overflow.
This commit is contained in:
parent
0eb940012d
commit
c51f848a31
|
@ -4,7 +4,6 @@ using System.Linq;
|
|||
using Avalonia;
|
||||
|
||||
using BFR.DataModels;
|
||||
using BFR.Helpers;
|
||||
|
||||
namespace BFR.Operations
|
||||
{
|
||||
|
@ -16,7 +15,6 @@ namespace BFR.Operations
|
|||
public bool IsEnabled { get; set; } = true;
|
||||
public abstract string Name { get; }
|
||||
public abstract string Description { get; }
|
||||
public abstract OperationType OperationType { get; }
|
||||
|
||||
protected abstract void ApplyToInternal(IList<FileModel> files);
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace BFR.Operations
|
|||
// Operation Info
|
||||
public override string Name => nameof(Overwrite);
|
||||
public override string Description => "Overwrites all file names. To produce a valid result this has to be combined with numbering.";
|
||||
public override OperationType OperationType { get; } = OperationType.Make<Overwrite>();
|
||||
|
||||
// Operation Parameters
|
||||
public string Replacement { get; set; } = "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user