mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Removed update version check, updated switch call
This commit is contained in:
parent
6fbdf46e24
commit
ce57aa9949
1 changed files with 1 additions and 13 deletions
|
|
@ -76,20 +76,10 @@ class App(QtWidgets.QWidget):
|
|||
options = QtWidgets.QHBoxLayout()
|
||||
options.setAlignment(QtCore.Qt.AlignLeft)
|
||||
|
||||
update_label = QtWidgets.QLabel("Update version")
|
||||
update_check = QtWidgets.QCheckBox()
|
||||
update_check.setChecked(False)
|
||||
update_check.setToolTip("If checked it versions up the selected comp "
|
||||
"file with else it will create a new slapcomp "
|
||||
"file based on the selected comp file")
|
||||
|
||||
current_comp_check = QtWidgets.QCheckBox()
|
||||
current_comp_check.setChecked(True)
|
||||
current_comp_label = QtWidgets.QLabel("Use current comp")
|
||||
|
||||
options.addWidget(update_label)
|
||||
options.addWidget(update_check)
|
||||
|
||||
options.addWidget(current_comp_label)
|
||||
options.addWidget(current_comp_check)
|
||||
|
||||
|
|
@ -103,7 +93,6 @@ class App(QtWidgets.QWidget):
|
|||
self._open_from_dir = open_from_dir
|
||||
self._comps = comp_box
|
||||
self._assets = asset_box
|
||||
self._update = update_check
|
||||
self._use_current = current_comp_check
|
||||
self._accept_btn = accept_btn
|
||||
self._refresh_btn = refresh_btn
|
||||
|
|
@ -164,10 +153,9 @@ class App(QtWidgets.QWidget):
|
|||
file_name = comp.GetAttrs("COMPS_FileName")
|
||||
|
||||
asset = self._assets.currentText()
|
||||
new = not self._update.isChecked()
|
||||
|
||||
import colorbleed.scripts.fusion_switch_shot as switch_shot
|
||||
switch_shot.switch(file_name, asset, new)
|
||||
switch_shot.switch(asset_name=asset, filepath=file_name, new=True)
|
||||
|
||||
def _get_context_directory(self):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue