Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Jul 20, 2024
1 parent ff05958 commit f7ec551
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions JL.Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public App()
AppDomain.CurrentDomain.UnhandledException += LogUnhandledException;
TaskScheduler.UnobservedTaskException += LogUnobservedTaskException;

Environment.CurrentDirectory = AppContext.BaseDirectory;

ProfileOptimization.SetProfileRoot(AppContext.BaseDirectory);
ProfileOptimization.StartProfile("Startup.Profile");

Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/AddDictionaryWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private void SaveButton_Click(object sender, RoutedEventArgs e)
return;
}

DictType type = typeString!.GetEnum<DictType>();
DictType type = typeString.GetEnum<DictType>();
if (DictUtils.YomichanDictTypes.Contains(type))
{
if (type is DictType.NonspecificKanjiYomichan)
Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/AddFrequencyWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void SaveButton_Click(object sender, RoutedEventArgs e)
return;
}

FreqType type = typeString!.GetEnum<FreqType>();
FreqType type = typeString.GetEnum<FreqType>();
if (type is FreqType.Yomichan or FreqType.YomichanKanji)
{
bool validPath = Directory.EnumerateFiles(fullPath, "*_bank_*.json", SearchOption.TopDirectoryOnly)
Expand Down

0 comments on commit f7ec551

Please sign in to comment.