Skip to content

Commit

Permalink
fix converting logic error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoqihang committed Jun 3, 2024
1 parent 58bdde6 commit f92c71f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
3 changes: 1 addition & 2 deletions Log2Html/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/ColorPicker;component/Styles/DefaultColorPickerStyle.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
</ResourceDictionary.MergedDictionaries>
<FontFamily x:Key="IconFont">/Log2Html;Component/Assets/#iconfont</FontFamily>
<FontFamily x:Key="ImFellDwPicaSc">/Log2Html;Component/Assets/#IM FELL DW Pica SC</FontFamily>
Expand Down
4 changes: 2 additions & 2 deletions Log2Html/ViewModel/AboutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ namespace Log2Html.ViewModel
{
public class AboutViewModel : INotifyPropertyChanged
{
public string AppVersion { get; } = "1.0.3";
public string AppVersion { get; } = "1.0.6";

public event PropertyChangedEventHandler? PropertyChanged;


private string _latestVersion = "1.0.3";
private string _latestVersion = "1.0.6";

public AboutViewModel()
{
Expand Down
20 changes: 12 additions & 8 deletions Log2Html/ViewModel/MainViewVM.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using Log2Html.Dao;
using Log2Html.Dao.Model;
using Log2Html.Enum;
using Log2Html.Model;
using Log2Html.Utils;
using Newtonsoft.Json;
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
Expand All @@ -14,6 +8,12 @@
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Input;
using Log2Html.Dao;
using Log2Html.Dao.Model;
using Log2Html.Enum;
using Log2Html.Model;
using Log2Html.Utils;
using Newtonsoft.Json;

namespace Log2Html.ViewModel
{
Expand Down Expand Up @@ -271,7 +271,11 @@ public ReturnInfo ConvertFile(string filePath, out string logInfo, out string ht
var htmlCssColor = item.ColorRgb.StartsWith("#") && item.ColorRgb.Length > 8 ? "#" + item.ColorRgb.Substring(3) + item.ColorRgb.Substring(1, 2) : item.ColorRgb;
if (tempLine.Contains(key))
{
isMatched = true;
if (!isMatched)
{
isMatched = true;
}

if (item.ShouldApplyForAllLine)
{
if (tempLine.StartsWith("<p"))
Expand Down

0 comments on commit f92c71f

Please sign in to comment.