Skip to content

Commit

Permalink
default ReuseInstance to true
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Nov 2, 2023
1 parent 6d5a033 commit 6badaac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion do/settings_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ var (
mkArray("Shortcuts", keyboardShortcut, "custom keyboard shortcuts"),
mkField("EscToExit", Bool, false,
"if true, Esc key closes SumatraPDF").setExpert(),
mkField("ReuseInstance", Bool, false,
mkField("ReuseInstance", Bool, true,
"if true, we'll always open files using existing SumatraPDF process").setExpert(),
mkField("ReloadModifiedDocuments", Bool, true,
"if true, a document will be reloaded automatically whenever it's changed "+
Expand Down
4 changes: 2 additions & 2 deletions src/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ static const StructInfo gFILETIMEInfo = {sizeof(FILETIME), 2, gFILETIMEFields, "

static const FieldInfo gGlobalPrefsFields[] = {
{(size_t)-1, SettingType::Comment,
(intptr_t) "For documentation, see https://www.sumatrapdfreader.org/settings/settings3-5-1.html"},
(intptr_t) "For documentation, see https://www.sumatrapdfreader.org/settings/settings3-5-3.html"},
{offsetof(GlobalPrefs, theme), SettingType::String, (intptr_t) ""},
{offsetof(GlobalPrefs, fixedPageUI), SettingType::Struct, (intptr_t)&gFixedPageUIInfo},
{offsetof(GlobalPrefs, comicBookUI), SettingType::Struct, (intptr_t)&gComicBookUIInfo},
Expand Down Expand Up @@ -683,7 +683,7 @@ static const FieldInfo gGlobalPrefsFields[] = {
{offsetof(GlobalPrefs, defaultZoom), SettingType::String, (intptr_t) "fit page"},
{offsetof(GlobalPrefs, shortcuts), SettingType::Array, (intptr_t)&gShortcutInfo},
{offsetof(GlobalPrefs, escToExit), SettingType::Bool, false},
{offsetof(GlobalPrefs, reuseInstance), SettingType::Bool, false},
{offsetof(GlobalPrefs, reuseInstance), SettingType::Bool, true},
{offsetof(GlobalPrefs, reloadModifiedDocuments), SettingType::Bool, true},
{(size_t)-1, SettingType::Comment, 0},
{offsetof(GlobalPrefs, mainWindowBackground), SettingType::Color, (intptr_t) "#80fff200"},
Expand Down

0 comments on commit 6badaac

Please sign in to comment.