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