mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
prio
This commit is contained in:
parent
2dd0030352
commit
c227e5d5c7
@ -60,12 +60,12 @@ class settingxx:
|
|||||||
clearlayout(lay1)
|
clearlayout(lay1)
|
||||||
clearlayout(lay2)
|
clearlayout(lay2)
|
||||||
config[self.use_which] = idx
|
config[self.use_which] = idx
|
||||||
(call1, call2)[idx](lay1, config)
|
(call1, call2)[1 - idx](lay1, config)
|
||||||
|
|
||||||
def settingxx(self, layout, config, call1, call2):
|
def settingxx(self, layout, config, call1, call2):
|
||||||
|
|
||||||
switch = LFocusCombo()
|
switch = LFocusCombo()
|
||||||
switch.addItems(["内置", "外部"])
|
switch.addItems(["外部", "内置"])
|
||||||
lay1 = LFormLayout()
|
lay1 = LFormLayout()
|
||||||
lay2 = LFormLayout()
|
lay2 = LFormLayout()
|
||||||
layout.addRow("优先使用", switch)
|
layout.addRow("优先使用", switch)
|
||||||
@ -173,7 +173,7 @@ class le_internal(LEbase, settingxx):
|
|||||||
config[k] = v
|
config[k] = v
|
||||||
|
|
||||||
def runX(self, exe, usearg, dirpath, config):
|
def runX(self, exe, usearg, dirpath, config):
|
||||||
if config.get(self.use_which, 0) == 1:
|
if config.get(self.use_which, 0) == 0:
|
||||||
|
|
||||||
valid = os.path.exists(globalconfig.get("le_extra_path", ""))
|
valid = os.path.exists(globalconfig.get("le_extra_path", ""))
|
||||||
if valid:
|
if valid:
|
||||||
@ -235,7 +235,7 @@ class NTLEAS64(LEbase, settingxx):
|
|||||||
config[k] = v
|
config[k] = v
|
||||||
|
|
||||||
def runX(self, exe, usearg, dirpath, config):
|
def runX(self, exe, usearg, dirpath, config):
|
||||||
if config.get(self.use_which, 0) == 1:
|
if config.get(self.use_which, 0) == 0:
|
||||||
|
|
||||||
valid = os.path.exists(self.__path())
|
valid = os.path.exists(self.__path())
|
||||||
if valid:
|
if valid:
|
||||||
@ -347,7 +347,7 @@ class lr_internal(LEbase, settingxx):
|
|||||||
config[k] = v
|
config[k] = v
|
||||||
|
|
||||||
def runX(self, exe, usearg, dirpath, config):
|
def runX(self, exe, usearg, dirpath, config):
|
||||||
if config.get(self.use_which, 0) == 1:
|
if config.get(self.use_which, 0) == 0:
|
||||||
|
|
||||||
valid = os.path.exists(globalconfig.get("lr_extra_path", ""))
|
valid = os.path.exists(globalconfig.get("lr_extra_path", ""))
|
||||||
if valid:
|
if valid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user