File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ def _cmd_line_parser():
88
99 parser = argparse .ArgumentParser ()
1010 parser .add_argument ("--measurements" , nargs = "*" , help = "list of measurement files" )
11+ parser .add_argument ("--reset" , action = "store_true" , help = "reset all the settings" )
1112 return parser
1213
1314
@@ -24,7 +25,7 @@ def main(measurements=None):
2425 sys .path .insert (0 , alternative_sitepacakges )
2526
2627 import pyqtgraph
27- from PySide6 import QtWidgets
28+ from PySide6 import QtCore , QtWidgets
2829
2930 from asammdf .gui .utils import excepthook , set_app_user_model_id
3031 from asammdf .gui .widgets .main import MainWindow
@@ -42,6 +43,9 @@ def main(measurements=None):
4243 app .setApplicationName ("py-asammdf" )
4344 set_app_user_model_id ("py-asammdf" )
4445
46+ if args .reset :
47+ QtCore .QSettings ().clear ()
48+
4549 _main_window = MainWindow (measurements or args .measurements )
4650 app .setStyle (QtWidgets .QStyleFactory .create ("Fusion" ))
4751
You can’t perform that action at this time.
0 commit comments