feat: unify moba workspace and persist session tree layout
This commit is contained in:
@@ -10,6 +10,8 @@ export function useConnectionSync() {
|
||||
watch(
|
||||
() => connectionsStore.connections.length,
|
||||
(newLength, oldLength) => {
|
||||
if (!treeStore.hydrated) return
|
||||
|
||||
if (newLength > oldLength) {
|
||||
// New connection added
|
||||
treeStore.syncNewConnections()
|
||||
@@ -24,6 +26,7 @@ export function useConnectionSync() {
|
||||
watch(
|
||||
() => connectionsStore.connections.map(c => ({ id: c.id, name: c.name })),
|
||||
(newConnections, oldConnections) => {
|
||||
if (!treeStore.hydrated) return
|
||||
if (!oldConnections) return
|
||||
|
||||
newConnections.forEach((newConn, index) => {
|
||||
|
||||
Reference in New Issue
Block a user