Skip to content

Commit

Permalink
- rename 'update' to 'run'
Browse files Browse the repository at this point in the history
  • Loading branch information
trigg committed May 17, 2024
1 parent e8cab49 commit 2d0cb28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/script/arch-update-tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def file_changed(self):
icon = QIcon.fromTheme(contents)
self.tray.setIcon(icon)

def update(self):
def run(self):
""" Start arch-update """
arch_update()

Expand All @@ -90,7 +90,7 @@ def __init__(self, statefile):
self.tray = QSystemTrayIcon()
self.file_changed()
self.tray.setVisible(True)
self.tray.activated.connect(self.update)
self.tray.activated.connect(self.run)

# Menu
menu = QMenu()
Expand All @@ -100,7 +100,7 @@ def __init__(self, statefile):
menu.addAction(menu_exit)

menu_exit.triggered.connect(self.exit)
menu_launch.triggered.connect(self.update)
menu_launch.triggered.connect(self.run)

self.tray.setContextMenu(menu)

Expand Down

0 comments on commit 2d0cb28

Please sign in to comment.