Skip to content
Snippets Groups Projects

Allow user to restore database to default settings

Merged Kien Le requested to merge feature-#90-store_backup_database into develop
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
@@ -217,6 +217,12 @@ class UIMainWindow(object):
"""
self.gps_plotter_action: Union[QAction, None] = None
"""
restore_default_database: menu item to reset the database back to its
original condition
"""
self.restore_default_database_action: Union[QAction, None] = None
# ========================== Option Menu =======================
"""
warn_big_file_sizes: option to check file sizes and give warning if
@@ -638,6 +644,11 @@ class UIMainWindow(object):
'GPS Plotter', main_window)
menu.addAction(self.gps_plotter_action)
self.restore_default_database_action = QAction(
'Reset Database to Default', main_window
)
menu.addAction(self.restore_default_database_action)
def create_option_menu(self, main_window, menu):
"""
Create Options Menu's Actions which help setting options for plotting.
Loading