Skip to content

Commit

Permalink
fix: Can set party to None in tracker menu
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Aug 16, 2023
1 parent 11c3db7 commit 268b661
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tracker/ui/Controls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
.onClick((evt: MouseEvent) => {
/* menu.hide(); */
const partyMenu = new Menu().setNoIcon();
partyMenu.addItem((item) => {
item.setTitle("None").onClick(() => {
tracker.setParty("", plugin);
});
});
for (const party of $data.parties) {
partyMenu.addItem((item) => {
item.setTitle(party.name).onClick(() => {
Expand Down

0 comments on commit 268b661

Please sign in to comment.