Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Dec 22, 2024
1 parent af49054 commit 3fdfa02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion JL.Core/Dicts/DictType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ public enum DictType
[Description("Word Dictionary (Nazeka)")] NonspecificWordNazeka,
[Description("Kanji Dictionary (Nazeka)")] NonspecificKanjiNazeka,
[Description("Name Dictionary (Nazeka)")] NonspecificNameNazeka,
[Description("Nonspecific Dictionary (Nazeka)")] NonspecificNazeka,
[Description("Nonspecific Dictionary (Nazeka)")] NonspecificNazeka
}
2 changes: 0 additions & 2 deletions JL.Core/Lookup/LookupUtils.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Concurrent;
using JL.Core.Config;
using JL.Core.Deconjugation;
using JL.Core.Dicts;
using JL.Core.Dicts.CustomNameDict;
Expand All @@ -24,7 +23,6 @@ public static class LookupUtils

public static LookupResult[]? LookupText(string text)
{
CoreConfigManager coreConfigManager = CoreConfigManager.Instance;
bool useDBForPitchDict = false;
if (DictUtils.SingleDictTypeDicts.TryGetValue(DictType.PitchAccentYomichan, out Dict? pitchDict))
{
Expand Down
9 changes: 3 additions & 6 deletions JL.Core/Mining/Anki/AnkiConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ await File.WriteAllTextAsync(Path.Join(Utils.ConfigPath, "AnkiConfig.json"),
}
}

else
{
// Utils.Frontend.Alert(AlertLevel.Error, "AnkiConfig.json doesn't exist");
Utils.Logger.Warning("AnkiConfig.json doesn't exist");
return null;
}
// Utils.Frontend.Alert(AlertLevel.Error, "AnkiConfig.json doesn't exist");
Utils.Logger.Warning("AnkiConfig.json doesn't exist");
return null;
}
}

0 comments on commit 3fdfa02

Please sign in to comment.