Skip to content

Commit b32e1aa

Browse files
committedAug 10, 2020
Disable video play buttons
1 parent 3fc4d30 commit b32e1aa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

‎src/tribler-gui/tribler_gui/widgets/tableiconbuttons.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ class PlayIconButton(IconButton):
6161
icon = QIcon(get_image_path("play.png"))
6262

6363
def should_draw(self, index):
64-
return index.model().data_items[index.row()][u'category'] == u'Video'
64+
# Commented out for 7.5.2 because VLC does not work
65+
# return index.model().data_items[index.row()][u'category'] == u'Video'
66+
return False
6567

6668

6769
class DeleteIconButton(IconButton):

‎src/tribler-gui/tribler_gui/widgets/triblertablecontrollers.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ def _show_context_menu(self, pos):
150150
num_selected = len(self.table_view.selectionModel().selectedRows())
151151
if num_selected == 1 and item_index.model().data_items[item_index.row()]["type"] == REGULAR_TORRENT:
152152
self.add_menu_item(menu, ' Download ', item_index, self.table_view.on_download_button_clicked)
153-
if item_index.model().data_items[item_index.row()][u'category'] == u'Video':
154-
self.add_menu_item(menu, ' Play ', item_index, self.table_view.on_play_button_clicked)
153+
# Commented out for 7.5.2 because VLC does not work
154+
# if item_index.model().data_items[item_index.row()][u'category'] == u'Video':
155+
# self.add_menu_item(menu, ' Play ', item_index, self.table_view.on_play_button_clicked)
155156

156157
# Add menu separator for channel stuff
157158
menu.addSeparator()

0 commit comments

Comments
 (0)
Please sign in to comment.