Fix temporary block type control

This commit is contained in:
azakhi 2018-08-22 11:47:32 +03:00
parent 0974579684
commit add7514ce7
2 changed files with 6 additions and 6 deletions

View File

@ -587,6 +587,12 @@ namespace Filtration.Parser.Services
// ReSharper disable once LoopCanBeConvertedToQuery // ReSharper disable once LoopCanBeConvertedToQuery
foreach (var blockItem in block.BlockItems.Where(b => b.GetType() != typeof(ActionBlockItem)).OrderBy(b => b.SortOrder)) foreach (var blockItem in block.BlockItems.Where(b => b.GetType() != typeof(ActionBlockItem)).OrderBy(b => b.SortOrder))
{ {
// Do not save temporary block until the new feature is fully implemented
if (blockItem is IconBlockItem)
{
continue;
}
if (blockItem.OutputText != string.Empty) if (blockItem.OutputText != string.Empty)
{ {
outputString += (!block.Enabled ? _disabledNewLine : _newLine) + blockItem.OutputText; outputString += (!block.Enabled ? _disabledNewLine : _newLine) + blockItem.OutputText;

View File

@ -245,12 +245,6 @@ namespace Filtration.Parser.Services
// ReSharper disable once LoopCanBeConvertedToQuery // ReSharper disable once LoopCanBeConvertedToQuery
foreach (var block in script.ItemFilterBlocks) foreach (var block in script.ItemFilterBlocks)
{ {
// Do not save temporary block until the new feature is fully implemented
if(block is ObjectModel.BlockItemTypes.IconBlockItem)
{
continue;
}
outputString += _blockTranslator.TranslateItemFilterBlockBaseToString(block) + Environment.NewLine; outputString += _blockTranslator.TranslateItemFilterBlockBaseToString(block) + Environment.NewLine;
if (Settings.Default.ExtraLineBetweenBlocks) if (Settings.Default.ExtraLineBetweenBlocks)