@@ -28,7 +28,13 @@ final class ProjectNavigatorViewController: NSViewController {
2828
2929var workspace : WorkspaceDocument ?
3030
31- var iconColor : SettingsData . FileIconStyle = . color
31+ var iconColor : SettingsData . FileIconStyle = . color{
32+ willSet{
33+ if newValue!= iconColor{
34+ outlineView. reloadData ( )
35+ }
36+ }
37+ }
3238
3339var fileExtensionsVisibility : SettingsData . FileExtensionsVisibility = . showAll
3440var shownFileExtensions : SettingsData . FileExtensions = . default
@@ -275,9 +281,7 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
275281}
276282
277283func outlineViewSelectionDidChange( _ notification: Notification ) {
278- guard let outlineView= notification. objectas? NSOutlineView else {
279- return
280- }
284+ guard let outlineView= notification. objectas? NSOutlineView else { return }
281285
282286let selectedIndex = outlineView. selectedRow
283287
@@ -298,13 +302,9 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
298302guard
299303let id= workspace? . editorManager. activeEditor. selectedTab? . file. id,
300304let item= workspace? . workspaceFileManager? . getFile ( id, createIfNotFound: true )
301- else {
302- return
303- }
305+ else { return }
304306 /// update outline selection only if the parent of selected item match with expanded item
305- guard item. parent=== notification. userInfo ? [ " NSObject " ] as? CEWorkspaceFile else {
306- return
307- }
307+ guard item. parent=== notification. userInfo ? [ " NSObject " ] as? CEWorkspaceFile else { return }
308308 /// select active file under collapsed folder only if its parent is expanding
309309if outlineView. isItemExpanded ( item. parent) {
310310updateSelection ( itemID: item. id)