Use folder_film.png as icon for 'open containing folder'

This commit is contained in:
Et0h 2017-01-06 12:25:03 +00:00
parent 483330e0f1
commit dd2029b00a
3 changed files with 3 additions and 2 deletions

View File

@ -659,6 +659,7 @@ guiIcons = ['resources/accept.png', 'resources/arrow_undo.png', 'resources/clock
'resources/film_go.png', 'resources/world_go.png', 'resources/arrow_refresh.png', 'resources/bullet_right_grey.png',
'resources/film_folder_edit.png',
'resources/film_edit.png',
'folder_film.png'
'resources/shield_edit.png',
'resources/shield_add.png',
'resources/email_go.png',

BIN
resources/folder_film.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

View File

@ -517,7 +517,7 @@ class MainWindow(QtGui.QMainWindow):
pathFound = self._syncplayClient.fileSwitch.findFilepath(firstFile)
if pathFound:
menu.addAction(QtGui.QPixmap(resourcespath + u"film_go.png"), getMessage("openmedia-menu-label"), lambda: self.openFile(pathFound))
menu.addAction(QtGui.QPixmap(resourcespath + u"film_folder_edit.png"),
menu.addAction(QtGui.QPixmap(resourcespath + u"folder_film.png"),
getMessage('open-containing-folder'),
lambda: utils.open_system_file_browser(pathFound))
if self._syncplayClient.isUntrustedTrustableURI(firstFile):
@ -584,7 +584,7 @@ class MainWindow(QtGui.QMainWindow):
if not isURL(filename) and filename <> getMessage("nofile-note"):
path = self._syncplayClient.fileSwitch.findFilepath(filename)
if path:
menu.addAction(QtGui.QPixmap(resourcespath + u"film_folder_edit.png"), getMessage('open-containing-folder'), lambda: utils.open_system_file_browser(path))
menu.addAction(QtGui.QPixmap(resourcespath + u"folder_film.png"), getMessage('open-containing-folder'), lambda: utils.open_system_file_browser(path))
else:
return
menu.exec_(self.listTreeView.viewport().mapToGlobal(position))