mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix #616 [skip ci]
This commit is contained in:
@@ -23,6 +23,7 @@ using Snap.Hutao.Service.Game.Locator;
|
||||
using Snap.Hutao.View.Dialog;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Windows.Storage.Pickers;
|
||||
|
||||
namespace Snap.Hutao.ViewModel;
|
||||
@@ -298,8 +299,14 @@ internal sealed class SettingViewModel : Abstraction.ViewModel
|
||||
}
|
||||
|
||||
private void CopyDeviceId()
|
||||
{
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(DeviceId);
|
||||
serviceProvider.GetRequiredService<IInfoBarService>().Success(SH.ViewModelSettingCopyDeviceIdSuccess);
|
||||
}
|
||||
catch (COMException)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user