Skip to content

Commit

Permalink
when opening via dde (e.g. double-click if already running), if ctrl …
Browse files Browse the repository at this point in the history
…is pressed, open in new tab (vs. activating existing tab); matches behavior when clicking on thumbnail
  • Loading branch information
Krzysztof Kowalczyk committed Dec 12, 2023
1 parent ea9d8de commit 038ce5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SearchAndDDE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ static const char* HandleOpenCmd(const char* cmd, bool* ack) {
win = FindMainWindowByHwnd(gLastActiveFrameHwnd);
}
LoadArgs args(pdfFile, win);
args.activateExisting = !IsCtrlPressed();
win = LoadDocument(&args);
} else if (!win->IsDocLoaded()) {
ReloadDocument(win, false);
Expand Down

0 comments on commit 038ce5a

Please sign in to comment.