Skip to content

Commit 02637cf

Browse files
FireChickenProductivitypre-commit-ci[bot]AndreasArvidsson
authored
Make Talon icon location description operating system specific (#2118)
Say it is in the system tray on Windows, in the status area on MacOS, and in the system tray or status area on Linux. I tested this on Windows and MacOS but was not sure what to do for Linux. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
1 parent e977564 commit 02637cf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

plugin/new_user_message/new_user_message.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
os.path.dirname(__file__), "new_user_message_dismissed"
88
)
99

10+
if app.platform == "windows":
11+
talon_menu_location = "system tray"
12+
elif app.platform == "mac":
13+
talon_menu_location = "status area"
14+
else:
15+
talon_menu_location = "system tray or status area"
16+
1017

1118
@imgui.open(y=0)
1219
def new_user_gui(gui: imgui.GUI):
@@ -41,7 +48,7 @@ def new_user_gui(gui: imgui.GUI):
4148
gui.line()
4249

4350
gui.text(
44-
"You can see the Talon menu by right clicking the Talon icon in the system tray or status area"
51+
f"You can see the Talon menu by clicking the Talon icon in the {talon_menu_location}"
4552
)
4653

4754
gui.line()
@@ -63,7 +70,7 @@ def new_user_gui(gui: imgui.GUI):
6370

6471
def show_new_user_message():
6572
"""Show the new user message
66-
Having this show up on startup with a fresh and stall required calling a function instead of an action, which is why this function exists
73+
Having this show up on startup with a fresh install required calling a function instead of an action, which is why this function exists
6774
"""
6875
new_user_gui.show()
6976
ctx.tags = ["user.new_user_message_showing"]

0 commit comments

Comments
 (0)