mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
Allow custom title on fusion or single source only
This commit is contained in:
@@ -371,6 +371,11 @@ class WorkerThread(QThread):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Fusion Failed. ' + str(e))
|
print('Fusion Failed. ' + str(e))
|
||||||
MW.addMessage.emit('Fusion Failed. ' + str(e), 'error', True)
|
MW.addMessage.emit('Fusion Failed. ' + str(e), 'error', True)
|
||||||
|
elif len(currentJobs) > 1 and options.title != 'defaulttitle':
|
||||||
|
currentJobs.clear()
|
||||||
|
error_message = 'Process Failed. Custom title can\'t be set when processing more than 1 source.\nDid you forget to check fusion?'
|
||||||
|
print(error_message)
|
||||||
|
MW.addMessage.emit(error_message, 'error', True)
|
||||||
for job in currentJobs:
|
for job in currentJobs:
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
if not self.conversionAlive:
|
if not self.conversionAlive:
|
||||||
@@ -751,6 +756,13 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
|
|||||||
if value:
|
if value:
|
||||||
self.metadataTitleBox.setChecked(False)
|
self.metadataTitleBox.setChecked(False)
|
||||||
|
|
||||||
|
def togglefileFusionBox(self, value):
|
||||||
|
if value:
|
||||||
|
GUI.metadataTitleBox.setChecked(False)
|
||||||
|
GUI.metadataTitleBox.setEnabled(False)
|
||||||
|
else:
|
||||||
|
GUI.metadataTitleBox.setEnabled(True)
|
||||||
|
|
||||||
def togglemetadataTitleBox(self, value):
|
def togglemetadataTitleBox(self, value):
|
||||||
if value:
|
if value:
|
||||||
GUI.titleEdit.setText(None)
|
GUI.titleEdit.setText(None)
|
||||||
@@ -1268,6 +1280,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
|
|||||||
GUI.deviceBox.activated.connect(self.changeDevice)
|
GUI.deviceBox.activated.connect(self.changeDevice)
|
||||||
GUI.formatBox.activated.connect(self.changeFormat)
|
GUI.formatBox.activated.connect(self.changeFormat)
|
||||||
GUI.titleEdit.textChanged.connect(self.toggletitleEdit)
|
GUI.titleEdit.textChanged.connect(self.toggletitleEdit)
|
||||||
|
GUI.fileFusionBox.stateChanged.connect(self.togglefileFusionBox)
|
||||||
GUI.metadataTitleBox.stateChanged.connect(self.togglemetadataTitleBox)
|
GUI.metadataTitleBox.stateChanged.connect(self.togglemetadataTitleBox)
|
||||||
MW.progressBarTick.connect(self.updateProgressbar)
|
MW.progressBarTick.connect(self.updateProgressbar)
|
||||||
MW.modeConvert.connect(self.modeConvert)
|
MW.modeConvert.connect(self.modeConvert)
|
||||||
|
|||||||
Reference in New Issue
Block a user