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:
parent
0216d1d77a
commit
deddd8efbb
|
|
@ -358,7 +358,11 @@ class ToolsPage(QWidget):
|
||||||
|
|
||||||
config = load_config()
|
config = load_config()
|
||||||
if config.registry.token:
|
if config.registry.token:
|
||||||
|
# Connected - enable Publish when tool selected
|
||||||
self.btn_publish.setEnabled(has_selection)
|
self.btn_publish.setEnabled(has_selection)
|
||||||
|
else:
|
||||||
|
# Not connected - Connect button is always enabled
|
||||||
|
self.btn_publish.setEnabled(True)
|
||||||
|
|
||||||
def _create_tool(self):
|
def _create_tool(self):
|
||||||
"""Create a new tool."""
|
"""Create a new tool."""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue