Fixed some names

This commit is contained in:
2023-12-27 18:24:32 +02:00
parent af90ae5fba
commit cc355d7d4f
2 changed files with 24 additions and 21 deletions

View File

@@ -8,10 +8,13 @@ public static class UxHandler
public static void Init()
{
if (Config.AppSettings["UI"] == "KDE")
_model = new Linux.KDE();
else
_model = new Other.Console();
_model = Config.AppSettings["UI"] switch
{
"KDE" => new Linux.KDE(),
"Console" => new Other.Console(),
_ => _model
};
}
public static async Task ShowMessageBox(string title, string message, MessageBoxType type = MessageBoxType.Info)