From c51f848a31def5571e97e76305eb72937acef4aa Mon Sep 17 00:00:00 2001 From: adroslice Date: Sat, 16 Nov 2019 03:50:55 +0100 Subject: [PATCH] Removed Operation.OperationType - Since OperationType instanciates two new operation this results in a stack overflow. --- BFR/Operations/Operation.cs | 2 -- BFR/Operations/Overwrite.cs | 1 - 2 files changed, 3 deletions(-) diff --git a/BFR/Operations/Operation.cs b/BFR/Operations/Operation.cs index 89228a9..03fb0aa 100644 --- a/BFR/Operations/Operation.cs +++ b/BFR/Operations/Operation.cs @@ -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 files); diff --git a/BFR/Operations/Overwrite.cs b/BFR/Operations/Overwrite.cs index a007a3e..5f5f955 100644 --- a/BFR/Operations/Overwrite.cs +++ b/BFR/Operations/Overwrite.cs @@ -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(); // Operation Parameters public string Replacement { get; set; } = "";