Use open lock icon if you are controller of room
This commit is contained in:
parent
106ecc1e94
commit
261b3e663d
@ -584,7 +584,7 @@ guiIcons = ['resources/accept.png', 'resources/arrow_undo.png', 'resources/clock
|
||||
'resources/mpv.png','resources/vlc.png', 'resources/house.png', 'resources/film_link.png',
|
||||
'resources/eye.png', 'resources/comments.png', 'resources/cog_delete.png', 'resources/bullet_black.png',
|
||||
'resources/user_key.png', 'resources/lock.png', 'resources/key_go.png', 'resources/page_white_key.png',
|
||||
'resources/tick.png'
|
||||
'resources/tick.png', 'lock_open.png'
|
||||
]
|
||||
resources = ["resources/icon.ico", "resources/syncplay.png"]
|
||||
resources.extend(guiIcons)
|
||||
|
||||
BIN
resources/lock_open.png
Normal file
BIN
resources/lock_open.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 727 B |
@ -111,7 +111,10 @@ class MainWindow(QtGui.QMainWindow):
|
||||
isControlledRoom = RoomPasswordProvider.isControlledRoom(room)
|
||||
|
||||
if isControlledRoom:
|
||||
roomitem.setIcon(QtGui.QIcon(self.resourcespath + 'lock.png'))
|
||||
if room == currentUser.room and currentUser.isController():
|
||||
roomitem.setIcon(QtGui.QIcon(self.resourcespath + 'lock_open.png'))
|
||||
else:
|
||||
roomitem.setIcon(QtGui.QIcon(self.resourcespath + 'lock.png'))
|
||||
else:
|
||||
roomitem.setIcon(QtGui.QIcon(self.resourcespath + 'bullet_black.png'))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user