Commit 4e1ce8b
Fix critical bug: copilot signals were never connected
Root cause: Signal connection logic had a fatal flaw:
- Line 1328 set _copilot_signals_connected = True BEFORE calling _connect_copilot_signals()
- _connect_copilot_signals() checks this flag and returns early if True
- Result: Signals NEVER got connected on first call!
This explains why chat (and likely edit/create) buttons showed no response:
- UI emitted signals properly
- But no handlers were listening because connections failed silently
Fix applied:
- Changed condition from "if not hasattr" to "if not hasattr OR not value"
- Now properly checks both existence AND value of the flag
- Signals will connect on first toggle of copilot panel
This was preventing ALL copilot functionality from working.
Co-authored-by: HeDaas-Code <208586641+HeDaas-Code@users.noreply.github.com>1 parent 4abc3e5 commit 4e1ce8b
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
1328 | | - | |
| 1327 | + | |
1329 | 1328 | | |
1330 | 1329 | | |
1331 | 1330 | | |
| |||
0 commit comments