mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix windows root issues.
This commit is contained in:
parent
1625883a7b
commit
f2a55da58d
@ -340,9 +340,8 @@ class Helpers:
|
||||
return False
|
||||
|
||||
def checkRoot(self):
|
||||
print(self.is_os_windows())
|
||||
if self.is_os_windows():
|
||||
if ctypes.windll.shell32.IsUserAnAdmin() == 0:
|
||||
if ctypes.windll.shell32.IsUserAnAdmin() == 1:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user