Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yonixw committed Aug 4, 2023
1 parent 5d0e623 commit 7b829d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MangaPrinter.Conf/CoreConf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public class CoreConf
"Add page after every chapter with text"
);

public JMetaT<int> Binding_AniSpoilerBatch { get; } = new JMetaT<int>(26,
public JMetaT<int> Binding_AntiSpoilerBatch { get; } = new JMetaT<int>(26,
"How many pages to print between Anti-spoiler pages. 0=No anti spoiler at all",
(N) => N >= 0
);
Expand Down
8 changes: 4 additions & 4 deletions MangaPrinter.WpfGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ void ConfigChanged(JsonConfig config)
cbAddStart.IsChecked = CoreConf.I.Binding_AddStartPage;
cbAddEnd.IsChecked = CoreConf.I.Binding_AddEndPage;

cbUseAntiSpoiler.IsChecked = CoreConf.I.Binding_AniSpoilerBatch > 0;
txtSpoilerPgNm.Text = CoreConf.I.Binding_AniSpoilerBatch.Get().ToString();
cbUseAntiSpoiler.IsChecked = CoreConf.I.Binding_AntiSpoilerBatch > 0;
txtSpoilerPgNm.Text = CoreConf.I.Binding_AntiSpoilerBatch.Get().ToString();

//todo txtPrintPadding.Text = Config.exportPagePadding.ToString();

Expand Down Expand Up @@ -500,15 +500,15 @@ private void UpdateApectCutoff(double newAspectCutoff)
private void txtSpoilerPgNm_TextChanged(object sender, TextChangedEventArgs e)
{
int? batch = verifyInteger(txtSpoilerPgNm,
CoreConf.I.Binding_AniSpoilerBatch.Get().ToString());
CoreConf.I.Binding_AntiSpoilerBatch.Get().ToString());

if (batch != null)
{
cbUseAntiSpoiler.IsChecked = batch > 0;
}
else
{
cbUseAntiSpoiler.IsChecked = CoreConf.I.Binding_AniSpoilerBatch > 0;
cbUseAntiSpoiler.IsChecked = CoreConf.I.Binding_AntiSpoilerBatch > 0;
}
}

Expand Down

0 comments on commit 7b829d2

Please sign in to comment.