Fix Publish button always greyed out when not connected

The _update_buttons method wasn't handling the no-token case properly.
When not connected, the Connect button should always be enabled.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rob 2026-01-16 07:01:25 -04:00
parent 0216d1d77a
commit deddd8efbb
1 changed files with 4 additions and 0 deletions

View File

@ -358,7 +358,11 @@ class ToolsPage(QWidget):
config = load_config()
if config.registry.token:
# Connected - enable Publish when tool selected
self.btn_publish.setEnabled(has_selection)
else:
# Not connected - Connect button is always enabled
self.btn_publish.setEnabled(True)
def _create_tool(self):
"""Create a new tool."""