Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Feb 10, 2025
1 parent 409b238 commit b7284bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ee_plugin/ee_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ def __init__(self, iface, ee_config: EarthEngineConfig):
provider.register_data_provider()

# Reload the plugin when the config changes
self.ee_config.signals.project_changed.connect(
self._refresh_project_button_text
)
self.ee_config.signals.project_changed.connect(self._refresh_project_id)

# noinspection PyMethodMayBeStatic
def tr(self, message):
Expand Down Expand Up @@ -124,7 +122,7 @@ def _project_button_text(self):
"""Get the text for the project button."""
return f"Set Project: {self.ee_config.project_id or '...'}"

def _refresh_project_button_text(self):
def _refresh_project_id(self):
"""Refresh the text for the project button."""
self.cmd_set_cloud_project.setText(self._project_button_text)

Expand Down

0 comments on commit b7284bf

Please sign in to comment.