mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
wpfui 4.0.0 (#1255)
* new INavigationAware, remove PageService * fix run * fix title bar * override OnNavigatedTo * try fix WindowStartupLocation
This commit is contained in:
@@ -21,7 +21,7 @@ using Wpf.Ui.Violeta.Controls;
|
||||
|
||||
namespace BetterGenshinImpact.ViewModel.Pages;
|
||||
|
||||
public partial class JsListViewModel : ObservableObject, INavigationAware, IViewModel
|
||||
public partial class JsListViewModel : ViewModel
|
||||
{
|
||||
private readonly ILogger<JsListViewModel> _logger = App.GetLogger<JsListViewModel>();
|
||||
private readonly string scriptPath = Global.ScriptPath();
|
||||
@@ -71,15 +71,11 @@ public partial class JsListViewModel : ObservableObject, INavigationAware, IView
|
||||
return di.GetDirectories();
|
||||
}
|
||||
|
||||
public void OnNavigatedTo()
|
||||
public override void OnNavigatedTo()
|
||||
{
|
||||
InitScriptListViewData();
|
||||
}
|
||||
|
||||
public void OnNavigatedFrom()
|
||||
{
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
public void OnOpenScriptsFolder()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user