mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Add AXAML hot reload (debug only)
Major progress on default entries too I guess lmao
This commit is contained in:
1 parent
20fb6b7662
commit
b351f685f7
24 files changed
+963
-682
No files matched your search
@@ -251,7 +251,13 @@ internal class Router : CorePropertyChanged, IRouter, IDisposable
|
||||
if (_previousWindowRoute != null && _currentRouteSubject.Value == "blank")
|
||||
Dispatcher.UIThread.InvokeAsync(async () => await Navigate(_previousWindowRoute, new RouterNavigationOptions {AddToHistory = false, EnableLogging = false}));
|
||||
else if (_currentRouteSubject.Value == null || _currentRouteSubject.Value == "blank")
|
||||
Dispatcher.UIThread.InvokeAsync(async () => await Navigate("home", new RouterNavigationOptions {AddToHistory = false, EnableLogging = true}));
|
||||
{
|
||||
string? startupRoute = Constants.GetStartupRoute();
|
||||
if (startupRoute != null)
|
||||
Dispatcher.UIThread.InvokeAsync(async () => await Navigate(startupRoute, new RouterNavigationOptions {AddToHistory = false, EnableLogging = true}));
|
||||
else
|
||||
Dispatcher.UIThread.InvokeAsync(async () => await Navigate("home", new RouterNavigationOptions {AddToHistory = false, EnableLogging = true}));
|
||||
}
|
||||
}
|
||||
|
||||
private void MainWindowServiceOnMainWindowClosed(object? sender, EventArgs e)
|
||||
|
||||
Reference in new issue
Block a user