diff options
| author | tassaron | 2017-06-01 20:31:15 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-01 20:31:15 -0400 |
| commit | 2768084b30da136dcfcb0c4e2e4264ad66083e4e (patch) | |
| tree | 897d5cc7301ab7f7865d9b0ad57248a3ac8cf053 /main.py | |
| parent | d31add0d955f58d1fa375d3166ac519a21f80c6b (diff) | |
resolution comboBox gets updated
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -354,7 +354,7 @@ class Main(QtCore.QObject): if not os.path.exists(destination): os.makedirs(destination) for f in os.listdir(destination): - self.window.comboBox_openPreset.addItem(f) + self.window.comboBox_openPreset.addItem(f) def openSavePresetDialog(self): if self.window.listWidget_componentList.currentRow() == -1: @@ -476,6 +476,11 @@ class Main(QtCore.QObject): os.rename(settingsPath, backupPath) shutil.copyfile(projSettingsPath, settingsPath) self.settings.sync() + currentRes = str(self.settings.value('outputWidth'))+'x'+str(self.settings.value('outputHeight')) + for i in range(self.window.comboBox_resolution.count()-1): + if self.window.comboBox_resolution.itemText(i) == currentRes: + self.window.comboBox_resolution.setCurrentIndex(i) + break def showMessage(self, string, icon=QtGui.QMessageBox.Information, showCancel=False): msg = QtGui.QMessageBox() |
