Skip to content

Commit

Permalink
Added and fixed clear button (#121)
Browse files Browse the repository at this point in the history
Added a dashboard 'Clear' button
  • Loading branch information
MaisimZaman authored Aug 25, 2023
1 parent 9027722 commit d48709b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sinks/dashboard/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ def return_fun():
new_action = add_item_menu.addAction(registry.get_items()[i].get_name())
new_action.triggered.connect(create_registry_trigger(i))
self.lockableActions.append(new_action)


#adding a button to the dashboard that removes all dashitems on the screen
remove_dashitems = menubar.addMenu("Clear")
remove_dashitems_action = remove_dashitems.addAction("Remove all the dashitems")
remove_dashitems_action.triggered.connect(self.remove_all)
self.lockableActions.append(remove_dashitems_action)

# Add an action to the menu bar to save the
# layout of the dashboard.
Expand Down

0 comments on commit d48709b

Please sign in to comment.