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 <[email protected]>
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user