Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions airq/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def __init__(self, api):
else:
self.add_menu(key)
self.menu.add(rumps.separator)
self.add_menu("Menu bar text...")
self.add_menu("Refresh Now...")
self.add_menu("Debug")
self.warns = set()
Expand Down Expand Up @@ -81,6 +82,15 @@ def update_status(self, data):
temp=self.strip_sensor_name(formatted_values[consts.KEY_TEMP]),
co2=self.strip_sensor_name(formatted_values[consts.KEY_CO2])
)

@rumps.clicked("Menu bar text...")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be the perfect time to make this "Preferences..." and move that into there. IMHO

def menu_bar_text(self, sender):
rumps.Window(
title="AirQ Debug",
default_text=json.dumps(self.last_data, indent=1),
dimensions=(600, 800),
).run()

@rumps.clicked("Debug")
def debug(self, sender):
rumps.Window(
Expand Down