qtui: Disable web preview by default
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 30 Oct 2018 19:07:44 +0000 (20:07 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 30 Oct 2018 19:16:22 +0000 (20:16 +0100)
Upon popular request, disable the web preview by default. This
feature tends to surprise unwitting new users that just happen
to hover over a questionable link, and the preview's functionality
is limited anyway with today's complex websites.

The web preview can still be enabled explicitly in chatview settings.
Existing configurations are unaffected by this change.

src/qtui/chatviewsettings.h
src/qtui/settingspages/chatviewsettingspage.ui

index 1af1756..c491bba 100644 (file)
@@ -43,7 +43,7 @@ public:
     ChatViewSettings(ChatScene *scene);
     ChatViewSettings(ChatView *view);
 
-    inline bool showWebPreview() { return localValue("ShowWebPreview", true).toBool(); }
+    inline bool showWebPreview() { return localValue("ShowWebPreview", false).toBool(); }
     inline void enableWebPreview(bool enabled) { setLocalValue("ShowWebPreview", enabled); }
 
     /**
index a4ab67e..99f568a 100644 (file)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>514</width>
-    <height>294</height>
+    <height>306</height>
    </rect>
   </property>
   <property name="windowTitle">
       <string>Show previews of webpages on URL hover</string>
      </property>
      <property name="checked">
-      <bool>true</bool>
+      <bool>false</bool>
      </property>
      <property name="defaultValue" stdset="0">
-      <bool>true</bool>
+      <bool>false</bool>
      </property>
      <property name="settingsKey" stdset="0">
       <string notr="true">ShowWebPreview</string>