MCPcopy Create free account
hub / github.com/Syncplay/syncplay / __displayMessageOnOSD

Method __displayMessageOnOSD

syncplay/client.py:1287–1296  ·  view source on GitHub ↗
(self, warningName, warningFunction)

Source from the content-addressed store, hash-verified

1285 self._ui.showOSDMessage(osdMessage, constants.WARNING_OSD_MESSAGES_LOOP_INTERVAL, OSDType=constants.OSD_ALERT, mood=messageMood)
1286
1287 def __displayMessageOnOSD(self, warningName, warningFunction):
1288 if constants.OSD_WARNING_MESSAGE_DURATION > self._warnings[warningName]["displayedFor"]:
1289 warningFunction()
1290 self._warnings[warningName]["displayedFor"] += constants.WARNING_OSD_MESSAGES_LOOP_INTERVAL
1291 else:
1292 self._warnings[warningName]["displayedFor"] = 0
1293 try:
1294 self._warnings[warningName]["timer"].stop()
1295 except:
1296 pass
1297
1298 def __displayPausedMessagesOnOSD(self):
1299 if self._client.autoplayConditionsMet():

Callers

nothing calls this directly

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected