Skip to content

Commit

Permalink
Fix: do not limit displayed RMP value
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexIII committed Jan 15, 2025
1 parent 34b544c commit beda459
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ Big thanks to the amazing people who have contributed to the project:

## Changelog

- 1.6.4
- Fix: do not limit displayed RMP value

- 1.6.3
- Add tray icon tooltip (show current temperatures, fan speeds, thermal mode)
- Add tray icon G mode indication
Expand Down
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.3"
#define MyAppVersion "1.6.4"
#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/GUI/AppGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,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.3"
APP_VERSION = "1.6.4"
APP_DESCRIPTION = "This app is an open-source replacement for Alienware Control Center "
APP_URL = "github.com/AlexIII/tcc-g15"

Expand Down
22 changes: 6 additions & 16 deletions src/GUI/QGauge.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,23 @@ def __init__(self, parent: Optional[QtWidgets.QWidget] = None) -> None:

def setColorScheme(self, colorScheme: dict[int, str]) -> None:
self._colorScheme = colorScheme
self._onValUpd()
self._connectValUp()
self._updateColor()

def createLabel(self) -> QtWidgets.QLabel:
if not self._extLabel:
self._extLabel = QtWidgets.QLabel()
self._connectValUp()
self._onValUpd()
return self._extLabel

def _connectValUp(self):
if not self._updColor_connected:
self.valueChanged.connect(self._onValUpd)
self._updColor_connected = True

def setValue(self, value: int):
# Update label
if self._extLabel:
self._extLabel.setText(self.format().replace('%v', str(value)))
if value < self.minimum(): value = self.minimum()
if value > self.maximum(): value = self.maximum()
super().setValue(value)
self._updateColor()

@QtCore.Slot()
def _onValUpd(self):
# Update label
if self._extLabel:
self._extLabel.setText(self.text())

# Update color
def _updateColor(self):
if self._colorScheme:
val = self.value()
color = '#000'
Expand Down

0 comments on commit beda459

Please sign in to comment.