mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
23b1636da7
commit
d094a9814a
@ -122,11 +122,11 @@ class le_internal(LEbase, settingxx):
|
|||||||
if not LEProc:
|
if not LEProc:
|
||||||
return
|
return
|
||||||
guids = self.profiles(config)[1]
|
guids = self.profiles(config)[1]
|
||||||
|
guids_ = self.profiles({})[1]
|
||||||
guid = config.get("leguid", None)
|
guid = config.get("leguid", None)
|
||||||
if guid not in guids:
|
if guid not in guids:
|
||||||
guid = guids[0]
|
guid = guids[0]
|
||||||
idx = guids.index(guid)
|
if guid in guids_:
|
||||||
if idx <= 1:
|
|
||||||
arg = '"{}" -runas {} {}'.format(LEProc, guid, usearg)
|
arg = '"{}" -runas {} {}'.format(LEProc, guid, usearg)
|
||||||
else:
|
else:
|
||||||
# 程序的配置运行
|
# 程序的配置运行
|
||||||
@ -420,7 +420,7 @@ class lr_internal(LEbase, settingxx):
|
|||||||
guids = self.profiles(config)[1]
|
guids = self.profiles(config)[1]
|
||||||
guid = config.get("lrguid", None)
|
guid = config.get("lrguid", None)
|
||||||
if guid not in guids:
|
if guid not in guids:
|
||||||
guids = guids[0]
|
guid = guids[0]
|
||||||
arg = '"{}" {} {}'.format(LEProc, guid, usearg)
|
arg = '"{}" {} {}'.format(LEProc, guid, usearg)
|
||||||
windows.CreateProcess(
|
windows.CreateProcess(
|
||||||
None,
|
None,
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 42)
|
set(VERSION_MINOR 42)
|
||||||
set(VERSION_PATCH 3)
|
set(VERSION_PATCH 4)
|
||||||
|
|
||||||
add_library(pch pch.cpp)
|
add_library(pch pch.cpp)
|
||||||
target_precompile_headers(pch PUBLIC pch.h)
|
target_precompile_headers(pch PUBLIC pch.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user