From a88b61fbcd35f2301ba969bd085a88fa1a4d6f9a Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Wed, 1 Feb 2023 22:43:28 +0100 Subject: [PATCH] Adjust visual defaults in settings from ui Signed-off-by: TheJackiMonster --- manuskript/load_save/version_1.py | 2 +- manuskript/ui/settings_ui.py | 14 +++++++------- manuskript/ui/settings_ui.ui | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/manuskript/load_save/version_1.py b/manuskript/load_save/version_1.py index 302f790..618633b 100644 --- a/manuskript/load_save/version_1.py +++ b/manuskript/load_save/version_1.py @@ -714,7 +714,7 @@ def loadProject(project, zip=None): errors.append("settings.txt") # Just to be sure - settings.saveToZip = zip + settings.saveToZip = True if zip else False settings.defaultTextType = "md" #################################################################################################################### diff --git a/manuskript/ui/settings_ui.py b/manuskript/ui/settings_ui.py index 90ec80d..f9104d0 100644 --- a/manuskript/ui/settings_ui.py +++ b/manuskript/ui/settings_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'manuskript/ui/settings_ui.ui' # -# Created by: PyQt5 UI code generator 5.15.7 +# Created by: PyQt5 UI code generator 5.15.8 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. @@ -14,7 +14,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Settings(object): def setupUi(self, Settings): Settings.setObjectName("Settings") - Settings.resize(681, 598) + Settings.resize(803, 623) self.horizontalLayout_8 = QtWidgets.QHBoxLayout(Settings) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.lstMenu = QtWidgets.QListWidget(Settings) @@ -144,7 +144,7 @@ class Ui_Settings(object): font.setBold(False) font.setWeight(50) self.chkAutoLoad.setFont(font) - self.chkAutoLoad.setChecked(True) + self.chkAutoLoad.setChecked(False) self.chkAutoLoad.setObjectName("chkAutoLoad") self.verticalLayout_18.addWidget(self.chkAutoLoad) self.verticalLayout_7.addWidget(self.groupBox_10) @@ -163,7 +163,7 @@ class Ui_Settings(object): font.setBold(False) font.setWeight(50) self.chkAutoSave.setFont(font) - self.chkAutoSave.setChecked(True) + self.chkAutoSave.setChecked(False) self.chkAutoSave.setObjectName("chkAutoSave") self.horizontalLayout_5.addWidget(self.chkAutoSave) self.txtAutoSave = QtWidgets.QLineEdit(self.groupBox) @@ -199,7 +199,7 @@ class Ui_Settings(object): font.setBold(False) font.setWeight(50) self.chkAutoSaveNoChanges.setFont(font) - self.chkAutoSaveNoChanges.setChecked(True) + self.chkAutoSaveNoChanges.setChecked(False) self.chkAutoSaveNoChanges.setObjectName("chkAutoSaveNoChanges") self.horizontalLayout_7.addWidget(self.chkAutoSaveNoChanges) self.txtAutoSaveNoChanges = QtWidgets.QLineEdit(self.groupBox) @@ -233,7 +233,7 @@ class Ui_Settings(object): font.setBold(False) font.setWeight(50) self.chkSaveOnQuit.setFont(font) - self.chkSaveOnQuit.setChecked(True) + self.chkSaveOnQuit.setChecked(False) self.chkSaveOnQuit.setObjectName("chkSaveOnQuit") self.verticalLayout_6.addWidget(self.chkSaveOnQuit) self.chkSaveToZip = QtWidgets.QCheckBox(self.groupBox) @@ -242,7 +242,7 @@ class Ui_Settings(object): font.setWeight(50) self.chkSaveToZip.setFont(font) self.chkSaveToZip.setStatusTip("") - self.chkSaveToZip.setChecked(True) + self.chkSaveToZip.setChecked(False) self.chkSaveToZip.setObjectName("chkSaveToZip") self.verticalLayout_6.addWidget(self.chkSaveToZip) self.verticalLayout_7.addWidget(self.groupBox) diff --git a/manuskript/ui/settings_ui.ui b/manuskript/ui/settings_ui.ui index 6b1a658..96e6859 100644 --- a/manuskript/ui/settings_ui.ui +++ b/manuskript/ui/settings_ui.ui @@ -6,8 +6,8 @@ 0 0 - 681 - 598 + 803 + 623 @@ -259,7 +259,7 @@ Automatically load last project on startup - true + false @@ -292,7 +292,7 @@ Automatically save every - true + false @@ -375,7 +375,7 @@ If no changes during - true + false @@ -456,7 +456,7 @@ Save on project close - true + false @@ -478,7 +478,7 @@ Save to one single file - true + false