[Mod]add app_name in create_qapp function
This commit is contained in:
parent
a203f864c4
commit
f0108ef889
@ -24,7 +24,7 @@ def excepthook(exctype, value, tb):
|
||||
)
|
||||
|
||||
|
||||
def create_qapp():
|
||||
def create_qapp(app_name: str = "VN Trader"):
|
||||
"""
|
||||
Create Qt Application.
|
||||
"""
|
||||
@ -41,7 +41,7 @@ def create_qapp():
|
||||
|
||||
if "Windows" in platform.uname():
|
||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
|
||||
"VN Trader"
|
||||
app_name
|
||||
)
|
||||
|
||||
return qapp
|
||||
|
Loading…
Reference in New Issue
Block a user