From 76fe7117c7b855c54609f9ede5c11b386a622ca2 Mon Sep 17 00:00:00 2001 From: Hydrus Network Developer Date: Wed, 14 Mar 2018 16:45:12 -0500 Subject: [PATCH] Version 298a fix to media viewer hover buttons --- include/ClientGUICanvas.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/include/ClientGUICanvas.py b/include/ClientGUICanvas.py index 86623886..8d3f2fce 100755 --- a/include/ClientGUICanvas.py +++ b/include/ClientGUICanvas.py @@ -3591,7 +3591,12 @@ class CanvasFilterDuplicates( CanvasWithHovers ): - def ProcessApplicationCommand( self, command ): + def ProcessApplicationCommand( self, command, canvas_key = None ): + + if canvas_key is not None and canvas_key != self._canvas_key: + + return False + command_processed = True @@ -4255,7 +4260,12 @@ class CanvasMediaListFilterArchiveDelete( CanvasMediaList ): - def ProcessApplicationCommand( self, command ): + def ProcessApplicationCommand( self, command, canvas_key = None ): + + if canvas_key is not None and canvas_key != self._canvas_key: + + return False + command_processed = True @@ -4383,7 +4393,12 @@ class CanvasMediaListNavigable( CanvasMediaList ): - def ProcessApplicationCommand( self, command ): + def ProcessApplicationCommand( self, command, canvas_key = None ): + + if canvas_key is not None and canvas_key != self._canvas_key: + + return False + command_processed = True