File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
CodeEdit/Features/NavigatorArea/IssueNavigator/OutlineView Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,6 @@ final class IssueNavigatorViewController: NSViewController {
8282 scrollView. autohidesScrollers = true
8383
8484 loadExpansionState ( )
85-
86- // Expand the project node by default
87- DispatchQueue . main. async { [ weak self] in
88- if let rootItem = self ? . outlineView. item ( atRow: 0 ) {
89- self ? . outlineView. expandItem ( rootItem)
90- }
91- self ? . restoreExpandedState ( )
92- }
9385 }
9486
9587 init ( ) {
@@ -186,6 +178,14 @@ final class IssueNavigatorViewController: NSViewController {
186178 workspace? . editorManager? . activeEditor. openTab ( file: file, asTemporary: false )
187179 }
188180
181+ override func viewWillAppear( ) {
182+ // Expand the project node by default
183+ if let rootItem = self . outlineView. item ( atRow: 0 ) {
184+ self . outlineView. expandItem ( rootItem)
185+ }
186+ self . restoreExpandedState ( )
187+ }
188+
189189 /// Called when view will disappear - save state
190190 override func viewWillDisappear( ) {
191191 super. viewWillDisappear ( )
You can’t perform that action at this time.
0 commit comments