Skip to content

Commit

Permalink
refactor(initDefaultSettingsIfMissing): extract method
Browse files Browse the repository at this point in the history
Extract initializeSettings(defaultFont) method

See issue #500
  • Loading branch information
RalfBarkow committed May 21, 2024
1 parent dd4c167 commit 004ec8a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,10 @@ public void initDefaultSettingsIfMissing() {
// Default font is the "SansSerif" logical font name.
String defaultFont = Font.SANS_SERIF;

initializeSettings(defaultFont);
}

private void initializeSettings(String defaultFont) {
String pandoc = "pandoc";
if (PlatformUtil.isMacOS()) {
pandoc = "/usr/local/bin/pandoc";
Expand Down

0 comments on commit 004ec8a

Please sign in to comment.