Skip to content

Commit

Permalink
Fix wrong panel name for accessing autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Dec 7, 2023
1 parent 00a4fb7 commit 6c7682a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lizmap/dialogs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ def __init__(self, parent=None, is_dev_version=True):
"<strong>'{tab_name}'</strong> for all errors which can be reported."
).format(column_name=Headers.Error.label, tab_name=self.tab_log.tabText(1))
)
settings_name = self.mOptionsListWidget.item(Panels.Settings).text()
auto_fix_panel = self.mOptionsListWidget.item(Panels.AutoFix).text()
self.label_autofix.setText(tr(
"An auto-fix is available in the '{tab_name}' panel"
).format(tab_name=settings_name))
self.push_visit_settings.setText(tr("Visit the '{tab_name}' panel").format(tab_name=settings_name))
).format(tab_name=auto_fix_panel))
self.push_visit_settings.setText(tr("Visit the '{tab_name}' panel").format(tab_name=auto_fix_panel))
self.push_visit_settings.clicked.connect(self.visit_settings_panel)
self.push_visit_settings.setIcon(QIcon(":/images/themes/default/console/iconSettingsConsole.svg"))
self.label_check_resume.setVisible(False)
Expand Down Expand Up @@ -434,7 +434,7 @@ def check_ign_french_free_key(self):

def visit_settings_panel(self):
""" Go to settings panel. """
self.mOptionsListWidget.setCurrentRow(Panels.Settings)
self.mOptionsListWidget.setCurrentRow(Panels.AutoFix)

def auto_fix_tooltip(self, lizmap_cloud):
""" Set some tooltips on these auto-fix buttons, according to Lizmap Cloud status. """
Expand Down

0 comments on commit 6c7682a

Please sign in to comment.