Fixed UI crash when trying to open other pages then home while bot is offline

This commit is contained in:
2024-10-23 20:15:43 +03:00
parent cfcfecd4bc
commit 5b1d511f77
9 changed files with 65 additions and 93 deletions

View File

@@ -31,6 +31,8 @@ namespace DiscordBotCore
public static Application CurrentApplication { get; private set; } = null!;
public static bool IsRunning { get; private set; }
private static readonly string _ConfigFile = "./Data/Resources/config.json";
private static readonly string _PluginsDatabaseFile = "./Data/Resources/plugins.json";
@@ -101,6 +103,8 @@ namespace DiscordBotCore
CurrentApplication.InternalActionManager = new InternalActionManager();
await CurrentApplication.InternalActionManager.Initialize();
IsRunning = true;
}
/// <summary>