Skip to content

Commit

Permalink
Fix dashboard installation
Browse files Browse the repository at this point in the history
  • Loading branch information
corruptbear committed Jun 24, 2024
1 parent e9aa862 commit c8de1ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions software/management/dashboard/tottag.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,12 +890,12 @@ def _change_save_directory(self):


# TOP-LEVEL FUNCTIONALITY ---------------------------------------------------------------------------------------------
def main(s):
gui = TotTagGUI(mode_switch_visibility=s)
def main(mode_switch_visibility=False):
gui = TotTagGUI(mode_switch_visibility=mode_switch_visibility)
gui.mainloop()

if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Parser for command line options")
parser.add_argument('-s', action='store_true', help='With the -s flag, the mode switch will be visible')
args = parser.parse_args()
main(args.s)
main(mode_switch_visibility = args.s)

0 comments on commit c8de1ed

Please sign in to comment.