mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-24 20:12:21 +00:00
Hide monitors that are not visible
This commit is contained in:
parent
1efbd9586d
commit
f5aaec79e0
@ -50,6 +50,11 @@ class MonitorItem(QGraphicsRectItem, QObject):
|
||||
self.setBrush(QBrush("#f1f1f1", Qt.SolidPattern))
|
||||
self.setZValue(-1000)
|
||||
|
||||
if not data["current_mode"]: # Disconnected or disabled
|
||||
self.hide()
|
||||
else:
|
||||
self.show()
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
self.window.pos_label.show()
|
||||
self.setCursor(Qt.ClosedHandCursor)
|
||||
|
Loading…
Reference in New Issue
Block a user