From 8861b73e806c21db3318a9730a00f116696c6734 Mon Sep 17 00:00:00 2001 From: vzhd1701 Date: Mon, 13 Jun 2022 17:38:57 +0500 Subject: [PATCH] feat: add reload all action --- gridplayer/player/managers/actions.py | 5 +++++ gridplayer/player/managers/video_blocks.py | 1 + 2 files changed, 6 insertions(+) diff --git a/gridplayer/player/managers/actions.py b/gridplayer/player/managers/actions.py index a75fcbf..13c68d9 100644 --- a/gridplayer/player/managers/actions.py +++ b/gridplayer/player/managers/actions.py @@ -384,6 +384,11 @@ "show_if": "is_active_multistream", "menu_generator": "menu_generator_stream_quality", }, + "Reload All": { + "title": "Reload All", + "key": "Shift+F5", + "func": "reload_all", + }, } ) diff --git a/gridplayer/player/managers/video_blocks.py b/gridplayer/player/managers/video_blocks.py index ef0cb5b..35e939c 100644 --- a/gridplayer/player/managers/video_blocks.py +++ b/gridplayer/player/managers/video_blocks.py @@ -92,6 +92,7 @@ def commands(self): "is_videos": lambda: bool(self._ctx.video_blocks), "is_seek_synced": lambda: self._ctx.is_seek_synced, "switch_seek_synced": self.switch_seek_synced, + "reload_all": self.reload_videos, } def cmd_play_pause_all(self):