fix(gui): skip _switch_project if already on that project
Prevents reloading and state issues when clicking same project
This commit is contained in:
@@ -9,7 +9,7 @@ auto_add = true
|
||||
|
||||
[discussions.main]
|
||||
git_commit = "9265f94d9756b1a37a7b8e195725654032d84747"
|
||||
last_updated = "2026-05-10T21:16:47"
|
||||
last_updated = "2026-05-10T23:23:27"
|
||||
history = [
|
||||
"@2026-02-21T18:22:58\nUser:\nI will now try to generate a response from the AI. I will then try to run a tool call. Finally, I will try to generate a response from the AI again.",
|
||||
]
|
||||
|
||||
+15
-10
@@ -75,7 +75,7 @@ DockId=0xAFC85805,2
|
||||
|
||||
[Window][Theme]
|
||||
Pos=0,28
|
||||
Size=1412,1729
|
||||
Size=524,1172
|
||||
Collapsed=0
|
||||
DockId=0x00000005,3
|
||||
|
||||
@@ -102,26 +102,26 @@ Collapsed=0
|
||||
DockId=0x0000000D,0
|
||||
|
||||
[Window][Discussion Hub]
|
||||
Pos=1414,28
|
||||
Size=1154,1729
|
||||
Pos=526,28
|
||||
Size=1154,1172
|
||||
Collapsed=0
|
||||
DockId=0x00000006,0
|
||||
|
||||
[Window][Operations Hub]
|
||||
Pos=0,28
|
||||
Size=1412,1729
|
||||
Size=524,1172
|
||||
Collapsed=0
|
||||
DockId=0x00000005,2
|
||||
|
||||
[Window][Files & Media]
|
||||
Pos=1414,28
|
||||
Size=1154,1729
|
||||
Pos=526,28
|
||||
Size=1154,1172
|
||||
Collapsed=0
|
||||
DockId=0x00000006,1
|
||||
|
||||
[Window][AI Settings]
|
||||
Pos=0,28
|
||||
Size=1412,1729
|
||||
Size=524,1172
|
||||
Collapsed=0
|
||||
DockId=0x00000005,0
|
||||
|
||||
@@ -407,7 +407,7 @@ DockId=0x00000006,1
|
||||
|
||||
[Window][Project Settings]
|
||||
Pos=0,28
|
||||
Size=1412,1729
|
||||
Size=524,1172
|
||||
Collapsed=0
|
||||
DockId=0x00000005,1
|
||||
|
||||
@@ -452,6 +452,11 @@ Pos=955,585
|
||||
Size=816,608
|
||||
Collapsed=0
|
||||
|
||||
[Window][AST Inspector]
|
||||
Pos=431,246
|
||||
Size=816,708
|
||||
Collapsed=0
|
||||
|
||||
[Table][0xFB6E3870,4]
|
||||
RefScale=13
|
||||
Column 0 Width=80
|
||||
@@ -591,11 +596,11 @@ Column 4 Width=70
|
||||
DockNode ID=0x00000008 Pos=3125,170 Size=593,1157 Split=Y
|
||||
DockNode ID=0x00000009 Parent=0x00000008 SizeRef=1029,147 Selected=0x0469CA7A
|
||||
DockNode ID=0x0000000A Parent=0x00000008 SizeRef=1029,145 Selected=0xDF822E02
|
||||
DockSpace ID=0xAFC85805 Window=0x079D3A04 Pos=0,28 Size=2568,1729 Split=X
|
||||
DockSpace ID=0xAFC85805 Window=0x079D3A04 Pos=0,28 Size=1680,1172 Split=X
|
||||
DockNode ID=0x00000003 Parent=0xAFC85805 SizeRef=2254,1183 Split=X
|
||||
DockNode ID=0x0000000B Parent=0x00000003 SizeRef=404,1186 Split=X Selected=0xF4139CA2
|
||||
DockNode ID=0x00000007 Parent=0x0000000B SizeRef=1512,858 Split=X Selected=0x8CA2375C
|
||||
DockNode ID=0x00000005 Parent=0x00000007 SizeRef=1109,1681 CentralNode=1 Selected=0x418C7449
|
||||
DockNode ID=0x00000005 Parent=0x00000007 SizeRef=1109,1681 CentralNode=1 Selected=0x3F1379AF
|
||||
DockNode ID=0x00000006 Parent=0x00000007 SizeRef=1154,1681 Selected=0x6F2B5B04
|
||||
DockNode ID=0x0000000E Parent=0x0000000B SizeRef=1777,858 Selected=0x1D56B311
|
||||
DockNode ID=0x0000000D Parent=0x00000003 SizeRef=435,1186 Selected=0x363E93D6
|
||||
|
||||
@@ -2344,6 +2344,8 @@ class AppController:
|
||||
"""
|
||||
[C: src/gui_2.py:App._render_projects_panel]
|
||||
"""
|
||||
if path == self.active_project_path:
|
||||
return
|
||||
if not Path(path).exists():
|
||||
self.ai_status = f"project file not found: {path}"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user