Skip to content

Commit

Permalink
Make focusing on lookup true by default.
Browse files Browse the repository at this point in the history
Bump version number.
  • Loading branch information
rampaa committed Mar 13, 2022
1 parent 2266399 commit 83317b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion JL/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static class ConfigManager
public static int PopupMaxHeight { get; set; } = 520;
public static bool PopupDynamicHeight { get; set; } = true;
public static bool PopupDynamicWidth { get; set; } = true;
public static bool PopupFocusOnLookup { get; set; } = false;
public static bool PopupFocusOnLookup { get; set; } = true;
public static int PopupXOffset { get; set; } = 10;
public static int PopupYOffset { get; set; } = 20;
public static bool PopupFlipX { get; set; } = true;
Expand Down
6 changes: 3 additions & 3 deletions JL/GUI/PopupWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace JL.GUI
/// </summary>
public partial class PopupWindow : Window
{
private readonly PopupWindow _parentPopUp;
private readonly PopupWindow _parentPopupWindow;

private PopupWindow _childPopupWindow;

Expand Down Expand Up @@ -53,7 +53,7 @@ public PopupWindow()

public PopupWindow(PopupWindow parentPopUp) : this()
{
_parentPopUp = parentPopUp;
_parentPopupWindow = parentPopUp;
}

public void Init()
Expand Down Expand Up @@ -1037,7 +1037,7 @@ private async void Window_KeyDown(object sender, KeyEventArgs e)
PopUpScrollViewer.ScrollToTop();
PopUpScrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Disabled;

if (ConfigManager.LookupOnSelectOnly && _parentPopUp == null)
if (ConfigManager.LookupOnSelectOnly && _parentPopupWindow == null)
{
Unselect(MainWindow.Instance.MainTextBox);
}
Expand Down
6 changes: 4 additions & 2 deletions JL/Storage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Storage
{
public static readonly string ApplicationPath = Directory.GetCurrentDirectory();
public static readonly HttpClient Client = new(new HttpClientHandler() { UseProxy = false });
public static readonly Version Version = new(1, 4);
public static readonly Version Version = new(1, 5);
public static readonly string RepoUrl = "https://github.com/rampaa/JL/";
public static bool Ready { get; set; } = false;
public static bool UpdatingJMdict { get; set; } = false;
Expand Down Expand Up @@ -70,7 +70,9 @@ public class Storage

public static readonly List<DictType> NazekaDictTypes = new()
{
DictType.KenkyuushaNazeka, DictType.DaijirinNazeka, DictType.ShinmeikaiNazeka
DictType.KenkyuushaNazeka,
DictType.DaijirinNazeka,
DictType.ShinmeikaiNazeka
};

public static async Task LoadDictionaries()
Expand Down

0 comments on commit 83317b5

Please sign in to comment.