Skip to content

Commit 0a0c45b

Browse files
committed
sln explorer - folder name - use ReactiveProperty
1 parent 9e1ed94 commit 0a0c45b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
using SharpIDE.Application.Features.Analysis;
88
using SharpIDE.Application.Features.Evaluation;
99
using SharpIDE.Application.Features.SolutionDiscovery;
10-
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
11-
1210
using SharpIDE.Godot.Features.BottomPanel;
1311
using SharpIDE.Godot.Features.Common;
1412
using SharpIDE.Godot.Features.Git;
15-
using SharpIDE.Godot.Features.Problems;
1613

1714
namespace SharpIDE.Godot.Features.SolutionExplorer;
1815

@@ -304,8 +301,7 @@ private TreeItem CreateFolderTreeItem(Tree tree, TreeItem parent, SharpIdeFolder
304301
folderItem.SharpIdeNode = sharpIdeFolder;
305302

306303
var disposableBuilder = Disposable.CreateBuilder();
307-
Observable.EveryValueChanged(sharpIdeFolder, folder => folder.Name.Value)
308-
.Skip(1).SubscribeOnThreadPool().ObserveOnThreadPool().SubscribeAwait(async (s, ct) =>
304+
sharpIdeFolder.Name.Skip(1).SubscribeOnThreadPool().ObserveOnThreadPool().SubscribeAwait(async (s, ct) =>
309305
{
310306
await this.InvokeAsync(() => folderItem.SetText(0, s));
311307
}, configureAwait: false).AddTo(ref disposableBuilder);

0 commit comments

Comments
 (0)