Skip to content

Commit

Permalink
Some MyraPad fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Sep 20, 2024
1 parent 834ec64 commit 3fec276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MyraPad/UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ public MainForm(State state)
PropertyGrid.CustomSetter = RecordSetter;
PropertyGrid.Settings.AssetManager = MyraEnvironment.DefaultAssetManager;

_topSplitPane.SetSplitterPosition(0, state != null ? state.TopSplitterPosition1 : 0.25f);
_topSplitPane.SetSplitterPosition(1, state != null ? state.TopSplitterPosition2 : 0.75f);
_topSplitPane.SetSplitterPosition(0, state != null ? state.TopSplitterPosition1 : 0.2f);
_topSplitPane.SetSplitterPosition(1, state != null ? state.TopSplitterPosition2 : 0.6f);
_leftSplitPane.SetSplitterPosition(0, state != null ? state.CenterSplitterPosition : 0.5f);

UpdateMenuFile();
Expand Down Expand Up @@ -1645,7 +1645,7 @@ private void BuildExplorerTreeRecursive(ITreeViewNode node, IItemWithId root)
newNode.Tag = root;
newNode.IsExpanded = true;

var props = root.GetType().GetRuntimeProperties();
var props = root.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance);
var contentProperty = (from p in props where p.FindAttribute<ContentAttribute>() != null select p).FirstOrDefault();
if (contentProperty == null)
{
Expand Down

0 comments on commit 3fec276

Please sign in to comment.