- fixed issues with detecting older Preferences files

This commit is contained in:
Marius Stanciu
2020-07-21 14:17:58 +03:00
committed by Marius
parent 676645d6f5
commit 8a95580f15
5 changed files with 39 additions and 26 deletions

View File

@@ -296,7 +296,7 @@ class ToolsDB(QtWidgets.QWidget):
"A position on Z plane to move immediately after job stop."))
def setup_db_ui(self):
filename = self.app.data_path + '/geo_tools_db.FlatDB'
filename = self.app.data_path + '/tools_db.FlatDB'
# load the database tools from the file
try:
@@ -733,7 +733,7 @@ class ToolsDB(QtWidgets.QWidget):
def on_save_tools_db(self, silent=False):
self.app.log.debug("ToolsDB.on_save_button() --> Saving Tools Database to file.")
filename = self.app.data_path + "/geo_tools_db.FlatDB"
filename = self.app.data_path + "/tools_db.FlatDB"
# Preferences save, update the color of the Tools DB Tab text
for idx in range(self.app_ui.plot_tab_area.count()):
@@ -2450,7 +2450,7 @@ class ToolsDB2(QtWidgets.QWidget):
self.ui_connect()
def setup_db_ui(self):
filename = self.app.data_path + '\\geo_tools_db.FlatDB'
filename = self.app.data_path + '\\tools_db.FlatDB'
# load the database tools from the file
try:
@@ -2859,7 +2859,7 @@ class ToolsDB2(QtWidgets.QWidget):
def on_save_tools_db(self, silent=False):
self.app.log.debug("ToolsDB.on_save_button() --> Saving Tools Database to file.")
filename = self.app.data_path + "/geo_tools_db.FlatDB"
filename = self.app.data_path + "/tools_db.FlatDB"
# Preferences save, update the color of the Tools DB Tab text
for idx in range(self.app_ui.plot_tab_area.count()):