Fixed UI crash when trying to open other pages then home while bot is offline
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user