Skip to content

Commit

Permalink
3.1.0 Mac Startup Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
BiologyTools committed Jun 26, 2023
1 parent d541f7d commit 9423fb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BioGTK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@
</PackageReference>
<PackageReference Include="ScottPlot" Version="5.0.5-beta" />
<PackageReference Include="SkiaSharp" Version="2.88.3" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.3" />
<PackageReference Include="SkiaSharp.NativeAssets.macOS" Version="2.88.3" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions Source/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static class App
/// Initialize() is a function that initializes the BioImage Suite Web
public static void Initialize()
{
Console.WriteLine("Initializing components.");
BioImage.Initialize();
tools = Tools.Create();
filters = FiltersView.Create();
Expand All @@ -48,6 +49,7 @@ public static void Initialize()
setTool = SetTool.Create();
recorder = Recorder.Create();
//color = ColorTool.Create();
Console.WriteLine("Loading settings.");
Settings.Load();
ImageJ.ImageJPath = Settings.GetSettings("ImageJPath");
}
Expand Down
9 changes: 9 additions & 0 deletions Source/NodeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,24 @@ public static NodeView Create(string[] args)
/// <param name="handle"> The handle. </param>
protected NodeView(Builder builder, IntPtr handle, string[] args) : base(handle)
{
Console.WriteLine("Creating Nodeview.");
_builder = builder;
builder.Autoconnect(this);
string st = System.IO.Path.GetDirectoryName(Environment.ProcessPath);
//Let's make sure the directories we need for startup exist.
Console.WriteLine("Reading start up folders.");
System.IO.Directory.CreateDirectory(st + "/Scripts");
System.IO.Directory.CreateDirectory(st + "/Functions");
System.IO.Directory.CreateDirectory(st + "/Tools");
App.Initialize();
App.nodeView = this;
SetupHandlers();
Console.WriteLine("Parsing arguments.");
foreach (string item in args)
{
BioImage.OpenFile(item);
}
Console.WriteLine("Initializing nodes.");
InitItems();
}

Expand Down

0 comments on commit 9423fb7

Please sign in to comment.