mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
2847e8cac0
commit
1b556b4970
@ -222,16 +222,16 @@ def setTabThree_lazy(self) :
|
|||||||
sub3=getsimpleswitch(globalconfig['lossless'],'scalingSubtype3',callback=lambda _:setsubtype())
|
sub3=getsimpleswitch(globalconfig['lossless'],'scalingSubtype3',callback=lambda _:setsubtype())
|
||||||
vrs=getsimpleswitch(globalconfig['lossless'],'VRS')
|
vrs=getsimpleswitch(globalconfig['lossless'],'VRS')
|
||||||
def setsubtype():
|
def setsubtype():
|
||||||
vrs.setEnabled( globalconfig['lossless']['scalingType'] in [5])
|
vrs.setEnabled( globalconfig['lossless']['scalingType'] in [6])
|
||||||
sharp.setEnabled( globalconfig['lossless']['scalingType'] in [0,1,7,8])
|
sharp.setEnabled( globalconfig['lossless']['scalingType'] in [1,2,8,9])
|
||||||
sub1.setEnabled( globalconfig['lossless']['scalingType'] in [0])
|
sub1.setEnabled( globalconfig['lossless']['scalingType'] in [1])
|
||||||
sub2.setEnabled( globalconfig['lossless']['scalingType'] in [5])
|
sub2.setEnabled( globalconfig['lossless']['scalingType'] in [6])
|
||||||
sub3.setEnabled( globalconfig['lossless']['scalingType'] in [7])
|
sub3.setEnabled( globalconfig['lossless']['scalingType'] in [8])
|
||||||
if globalconfig['lossless']['scalingType']==0:
|
if globalconfig['lossless']['scalingType']==1:
|
||||||
globalconfig['lossless']['scalingSubtype']=int(globalconfig['lossless']['scalingSubtype1'])
|
globalconfig['lossless']['scalingSubtype']=int(globalconfig['lossless']['scalingSubtype1'])
|
||||||
elif globalconfig['lossless']['scalingType']==5:
|
elif globalconfig['lossless']['scalingType']==6:
|
||||||
globalconfig['lossless']['scalingSubtype']=globalconfig['lossless']['scalingSubtype2']
|
globalconfig['lossless']['scalingSubtype']=globalconfig['lossless']['scalingSubtype2']
|
||||||
elif globalconfig['lossless']['scalingType']==7:
|
elif globalconfig['lossless']['scalingType']==8:
|
||||||
globalconfig['lossless']['scalingSubtype']=int(globalconfig['lossless']['scalingSubtype3'])
|
globalconfig['lossless']['scalingSubtype']=int(globalconfig['lossless']['scalingSubtype3'])
|
||||||
setenables()
|
setenables()
|
||||||
setsubtype()
|
setsubtype()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user