Skip to content

Commit 4bf66d6

Browse files
committed
Revert "tray: Fix hiding/showing notes on first click"
This reverts commit 572c0be. It didn't really fix the issue exactly, and was causing a potential state where clicking the status icon wouldn't ever bring the notes to the top.
1 parent 82db5a5 commit 4bf66d6

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

usr/lib/sticky/sticky.py

+10-7
Original file line numberDiff line numberDiff line change
@@ -750,13 +750,16 @@ def update_dummy_window(self, *args):
750750
self.dummy_window.stick()
751751

752752
def activate_notes(self, time):
753-
if self.notes_hidden:
754-
for note in self.notes:
755-
note.restore(time)
756-
self.notes_hidden = False
757-
self.update_dummy_window()
758-
else:
759-
self.hide_notes()
753+
for note in self.notes:
754+
if note.is_active():
755+
self.hide_notes()
756+
return
757+
758+
for note in self.notes:
759+
note.restore(time)
760+
761+
self.notes_hidden = False
762+
self.update_dummy_window()
760763

761764
def hide_notes(self):
762765
for note in self.notes:

0 commit comments

Comments
 (0)