Switch to existing document in new tab by default

Right now Okular defaults to opening an already-open document in a new
tab when opened a second time, which is a bit odd. Most other
document-based apps will switch to the existing document's instance
instead of opening a new instance of it.

Interestingly enough, Okular has an option to do this, but it's off by
default. I think on by default makes more sense here, to be consistent
with other document-based apps. Since the option exists, people who have
a specialized use case that commonly involves opening multiple instances
of the same document can toggle the option to have that. Everyone wins!

BUG: 432942
FIXED-IN: 21.04
This commit is contained in:
Nate Graham 2021-02-19 13:17:33 -07:00
parent c2d7252193
commit d0b9b138cc
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@
<default>false</default>
</entry>
<entry key="SwitchToTabIfOpen" type="Bool">
<default>false</default>
<default>true</default>
</entry>
<entry key="ShowOSD" type="Bool" >
<default>true</default>

View file

@ -2588,7 +2588,7 @@ Context menu actions like Rename Bookmarks etc.)
<varlistentry>
<term><guilabel>Switch to existing tab if file is already open</guilabel></term>
<listitem>
<para>Whether &okular; should switch to a tab if the file is already open instead of opening a new tab. This option is disabled by default. Can be toggled only if <guilabel>Open new files in tabs</guilabel> is enabled.</para>
<para>Whether &okular; should switch to a tab if the file is already open instead of opening a new tab. This option is enabled by default. Can be toggled only if <guilabel>Open new files in tabs</guilabel> is enabled.</para>
</listitem>
</varlistentry>
<varlistentry>