mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-25 04:18:30 +00:00
Use folder_film.png as icon for 'open containing folder'
This commit is contained in:
parent
483330e0f1
commit
dd2029b00a
@ -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_go.png', 'resources/world_go.png', 'resources/arrow_refresh.png', 'resources/bullet_right_grey.png',
|
||||||
'resources/film_folder_edit.png',
|
'resources/film_folder_edit.png',
|
||||||
'resources/film_edit.png',
|
'resources/film_edit.png',
|
||||||
|
'folder_film.png'
|
||||||
'resources/shield_edit.png',
|
'resources/shield_edit.png',
|
||||||
'resources/shield_add.png',
|
'resources/shield_add.png',
|
||||||
'resources/email_go.png',
|
'resources/email_go.png',
|
||||||
|
BIN
resources/folder_film.png
Normal file
BIN
resources/folder_film.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 792 B |
@ -517,7 +517,7 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
pathFound = self._syncplayClient.fileSwitch.findFilepath(firstFile)
|
pathFound = self._syncplayClient.fileSwitch.findFilepath(firstFile)
|
||||||
if pathFound:
|
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_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'),
|
getMessage('open-containing-folder'),
|
||||||
lambda: utils.open_system_file_browser(pathFound))
|
lambda: utils.open_system_file_browser(pathFound))
|
||||||
if self._syncplayClient.isUntrustedTrustableURI(firstFile):
|
if self._syncplayClient.isUntrustedTrustableURI(firstFile):
|
||||||
@ -584,7 +584,7 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
if not isURL(filename) and filename <> getMessage("nofile-note"):
|
if not isURL(filename) and filename <> getMessage("nofile-note"):
|
||||||
path = self._syncplayClient.fileSwitch.findFilepath(filename)
|
path = self._syncplayClient.fileSwitch.findFilepath(filename)
|
||||||
if path:
|
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:
|
else:
|
||||||
return
|
return
|
||||||
menu.exec_(self.listTreeView.viewport().mapToGlobal(position))
|
menu.exec_(self.listTreeView.viewport().mapToGlobal(position))
|
||||||
|
Loading…
Reference in New Issue
Block a user