Skip to content

Commit 085f636

Browse files
committed
[pyqgis-console] set default value for splitters state
1 parent f9ae9d5 commit 085f636

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/console/console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,8 @@ def restoreSettingsConsole(self):
714714
storedTabScripts = self.settings.value("pythonConsole/tabScripts")
715715
self.tabListScript = storedTabScripts
716716
self.splitter.restoreState(self.settings.value("pythonConsole/splitterConsole", QByteArray()))
717-
self.splitterEditor.restoreState(self.settings.value("pythonConsole/splitterEditor"))
718-
self.splitterObj.restoreState(self.settings.value("pythonConsole/splitterObj"))
717+
self.splitterEditor.restoreState(self.settings.value("pythonConsole/splitterEditor", QByteArray()))
718+
self.splitterObj.restoreState(self.settings.value("pythonConsole/splitterObj", QByteArray()))
719719

720720
if __name__ == '__main__':
721721
a = QApplication(sys.argv)

python/console/console_settings.ui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<rect>
5959
<x>0</x>
6060
<y>0</y>
61-
<width>554</width>
62-
<height>642</height>
61+
<width>546</width>
62+
<height>687</height>
6363
</rect>
6464
</property>
6565
<layout class="QGridLayout" name="gridLayout_2">
@@ -352,7 +352,7 @@
352352
<string>from APIs files</string>
353353
</property>
354354
<property name="checked">
355-
<bool>false</bool>
355+
<bool>true</bool>
356356
</property>
357357
</widget>
358358
</item>

0 commit comments

Comments
 (0)