Skip to content

Commit

Permalink
Define updateMonitorStatus()
Browse files Browse the repository at this point in the history
See also: #227
  • Loading branch information
BECATRUE committed Dec 4, 2023
1 parent b5e4e81 commit ac78b97
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion iquip/apps/dataviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,13 @@ def datasetName(self) -> str:
"""Returns the current dataset name in the line edit."""
return self.sourceWidget.datasetBox.currentText()

def updateMonitorStatus(self, override: bool):
"""Updates the monitor status viewer.
Args:
override: Whether overriding is on or off.
"""


class _DatasetListThread(QThread):
"""QThread for fetching the list of available datasets.
Expand Down Expand Up @@ -1230,7 +1237,7 @@ def receivedSlot(self, channelName: str, content: Any):
monitor: Updates the monitor status viewer in source widget.
"""
if channelName == self.constants.channels["monitor"]: # pylint: disable=no-member
pass
self.frame.updateMonitorStatus(content["override"])
else:
logger.warning("The message %s was ignored because handling for channel %s "
"is not implemented.", content, channelName)
Expand Down

0 comments on commit ac78b97

Please sign in to comment.