mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-01 10:39:50 +08:00
move log info
This commit is contained in:
@@ -22,6 +22,7 @@ using FontFamily = System.Windows.Media.FontFamily;
|
||||
using BetterGenshinImpact.ViewModel;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using BetterGenshinImpact.Genshin.Settings;
|
||||
using BetterGenshinImpact.Core.Config;
|
||||
|
||||
namespace BetterGenshinImpact.View;
|
||||
|
||||
@@ -121,6 +122,7 @@ public partial class MaskWindow : Window
|
||||
|
||||
private void PrintSystemInfo()
|
||||
{
|
||||
_logger.LogInformation("更好的原神 {Version}", Global.Version);
|
||||
var systemInfo = TaskContext.Instance().SystemInfo;
|
||||
var width = systemInfo.GameScreenSize.Width;
|
||||
var height = systemInfo.GameScreenSize.Height;
|
||||
|
||||
@@ -60,7 +60,6 @@ public partial class MainWindowViewModel : ObservableObject, IViewModel
|
||||
[SuppressMessage("CommunityToolkit.Mvvm.SourceGenerators.RelayCommandGenerator", "MVVMTK0039:Async void returning method annotated with RelayCommand")]
|
||||
private async void OnLoaded()
|
||||
{
|
||||
_logger.LogInformation("更好的原神 {Version}", Global.Version);
|
||||
try
|
||||
{
|
||||
await Task.Run(() =>
|
||||
|
||||
Reference in New Issue
Block a user