[graphics/okular/release/21.04] /: Switch to existing document in new tab by default

Nate Graham null at kde.org
Wed Mar 17 16:01:51 GMT 2021


Git commit d0b9b138cc352b6af1dc0bb8427cfc1608b7ac30 by Nate Graham.
Committed on 17/03/2021 at 16:00.
Pushed by ngraham into branch 'release/21.04'.

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

M  +1    -1    conf/okular.kcfg
M  +1    -1    doc/index.docbook

https://invent.kde.org/graphics/okular/commit/d0b9b138cc352b6af1dc0bb8427cfc1608b7ac30

diff --git a/conf/okular.kcfg b/conf/okular.kcfg
index 7021f6408..482ca3478 100644
--- a/conf/okular.kcfg
+++ b/conf/okular.kcfg
@@ -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>
diff --git a/doc/index.docbook b/doc/index.docbook
index 580369d4f..f147ba580 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -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>


More information about the kde-doc-english mailing list