]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Disable inline renaming for phones by default
authorFelix Ernst <felixernst@zohomail.eu>
Mon, 16 Sep 2024 14:52:59 +0000 (16:52 +0200)
committerFelix Ernst <felixernst@kde.org>
Thu, 17 Oct 2024 15:52:31 +0000 (15:52 +0000)
It currently does not seem to work together with virtual keyboards.

src/dolphinmainwindow.cpp

index 36f0316c6a43165ad4eebad7f28fc4990f586295..b0eccde0dab6719d5d91580822d7ad7d3b71c5bd 100644 (file)
@@ -207,7 +207,10 @@ DolphinMainWindow::DolphinMainWindow()
         if (usePhoneUi) {
             Q_ASSERT(qobject_cast<QDockWidget *>(m_placesPanel->parent()));
             m_placesPanel->parentWidget()->hide();
-            GeneralSettings::setShowZoomSlider(false);
+            auto settings = GeneralSettings::self();
+            settings->setShowZoomSlider(false); // Zooming can be done with pinch gestures instead and we are short on horizontal space.
+            settings->setRenameInline(false); // This works around inline renaming currently not working well with virtual keyboards.
+            settings->save(); // Otherwise the RenameInline setting is not picked up for the first time Dolphin is used.
         }
     }