mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-21 13:36:48 +00:00
Add "add X as trusted domain" room menu option
This commit is contained in:
parent
7465c85d8e
commit
f38feb05a8
@ -555,6 +555,9 @@ class MainWindow(QtGui.QMainWindow):
|
||||
pathFound = self._syncplayClient.fileSwitch.findFilepath(filename)
|
||||
if pathFound:
|
||||
menu.addAction(QtGui.QPixmap(resourcespath + u"film_go.png"), getMessage("openusersfile-menu-label").format(shortUsername), lambda: self.openFile(pathFound))
|
||||
if self._syncplayClient.isUntrustedTrustableURI(filename):
|
||||
domain = utils.getDomainFromURL(filename)
|
||||
menu.addAction(QtGui.QPixmap(resourcespath + u"shield_add.png"),getMessage("addtrusteddomain-menu-label").format(domain), lambda: self.addTrustedDomain(domain))
|
||||
else:
|
||||
return
|
||||
menu.exec_(self.listTreeView.viewport().mapToGlobal(position))
|
||||
|
Loading…
Reference in New Issue
Block a user