Skip to content

Commit 9e12c5a

Browse files
committed
Wait cursor changes
1 parent c784bc3 commit 9e12c5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

APLSource/GUI/ExpandDatabase.aplf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
⍝ ⍵ ←→ (tree obj)(config obj)
44
⍝ ⍺ ←→ item, which is the connection name
55
t c←⍵
6-
s←c t ##.DB.Connect ⍺
7-
s≡¯1:''
86
oldCursor←t SetCursor'Wait'
7+
s←c t ##.DB.Connect ⍺
8+
ResetCursor←{t SetCursor oldCursor}
9+
s≡¯1:ResetCursor''
910
schemas tables←↓⍉##.DB.GetTables ⍺
1011
dMat←schemas{(1 2⍴⍺,1)(⍵,(⍤¯1)2)}⌸tables
1112
items←t.Items
@@ -14,5 +15,5 @@
1415
cItems←⊃,/{⍵[;1]}¨,dMat
1516
cDepths←∊{⍵[;2]}¨,dMat
1617
t.(Items Depth)←cItems cDepths{(start↑⍵),⍺,(start↓⍵)}¨items depths
17-
t SetCursor oldCursor
18+
ResetCursor''
1819
}

0 commit comments

Comments
 (0)