Skip to content

Commit

Permalink
Disable video play buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ichorid committed Aug 10, 2020
1 parent 3fc4d30 commit b32e1aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/tribler-gui/tribler_gui/widgets/tableiconbuttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ class PlayIconButton(IconButton):
icon = QIcon(get_image_path("play.png"))

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


class DeleteIconButton(IconButton):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ def _show_context_menu(self, pos):
num_selected = len(self.table_view.selectionModel().selectedRows())
if num_selected == 1 and item_index.model().data_items[item_index.row()]["type"] == REGULAR_TORRENT:
self.add_menu_item(menu, ' Download ', item_index, self.table_view.on_download_button_clicked)
if item_index.model().data_items[item_index.row()][u'category'] == u'Video':
self.add_menu_item(menu, ' Play ', item_index, self.table_view.on_play_button_clicked)
# Commented out for 7.5.2 because VLC does not work
# if item_index.model().data_items[item_index.row()][u'category'] == u'Video':
# self.add_menu_item(menu, ' Play ', item_index, self.table_view.on_play_button_clicked)

# Add menu separator for channel stuff
menu.addSeparator()
Expand Down

0 comments on commit b32e1aa

Please sign in to comment.