Skip to content

Commit

Permalink
Merge pull request #6 from thewhobox/master
Browse files Browse the repository at this point in the history
debug output
  • Loading branch information
thewhobox authored Dec 18, 2023
2 parents bbb0971 + 95b4e44 commit 140affa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ShareLoader.CNL/settings.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"host":"http://qnap:49162","download":"C:\\Users\\u6\\Downloads"}
{"download":"C:\\Users\\mikeg\\Downloads","host":"http://192.168.178.2:18000"}
4 changes: 2 additions & 2 deletions ShareLoader.Share/SettingsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ public class SettingsHelper

public SettingsHelper()
{
if(!Directory.Exists("/shareloader/"))
if(!Directory.Exists("/shareloader"))
{
Console.WriteLine("/shareloader/ doesnt exist");
FilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "settings.txt");
Console.WriteLine("Using: " + FilePath);
}
Console.WriteLine("Using: " + FilePath);
}

public static Dictionary<string, string> Settings { get; set; } = new Dictionary<string, string>();
Expand Down
4 changes: 2 additions & 2 deletions ShareLoader/Data/DownloadContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public class DownloadContext : DbContext

public DownloadContext() : base()
{
if(!Directory.Exists("/shareloader/"))
if(!Directory.Exists("/shareloader"))
{
Console.WriteLine("/shareloader/ doesnt exist");
databasePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "database.db");
Console.WriteLine("Using: " + databasePath);
}
Console.WriteLine("Using: " + databasePath);
}
public DownloadContext(DbContextOptions<DownloadContext> options) : base(options)
{
Expand Down

0 comments on commit 140affa

Please sign in to comment.