Skip to content

Commit

Permalink
Fix getHardwareName() for GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexIII committed Oct 17, 2024
1 parent c4bc706 commit d303138
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion installer-inno-config.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Thermal Control Center"
#define MyAppVersion "1.6.1"
#define MyAppVersion "1.6.2"
#define MyAppPublisher "AlexIII"
#define MyAppURL "https://github.com/AlexIII/tcc-g15"
#define MyAppExeName "tcc-g15.exe"
Expand Down
2 changes: 1 addition & 1 deletion src/Backend/AWCCThermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def getHardwareName(self, fanIdx: int) -> Optional[str]:
return wmiInst.Name if hasattr(wmiInst, 'Name') else None
elif fanIdx == 1:
wmiClass = self._wmi.Win32_VideoController
wmiInst = wmiClass()[0]
wmiInst = max(wmiClass(), key=lambda inst: inst.AdapterRAM & 0xFFFFFFFF if hasattr(inst, 'AdapterRAM') and isinstance(inst.AdapterRAM, int) else 0) # Assume the one with the largest memory is the main GPU
return wmiInst.Name if hasattr(wmiInst, 'Name') else None
else:
return None
2 changes: 1 addition & 1 deletion src/GUI/AppGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class TCC_GUI(QtWidgets.QWidget):
FAILSAFE_TRIGGER_DELAY_SEC = 8
FAILSAFE_RESET_AFTER_TEMP_IS_OK_FOR_SEC = 60
APP_NAME = "Thermal Control Center for Dell G15"
APP_VERSION = "1.6.1"
APP_VERSION = "1.6.2"
APP_DESCRIPTION = "This app is an open-source replacement for Alienware Control Center "
APP_URL = "github.com/AlexIII/tcc-g15"

Expand Down

0 comments on commit d303138

Please # to comment.