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 Snap.Hutao.View.Dialog;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using Windows.Storage.Pickers;
|
using Windows.Storage.Pickers;
|
||||||
|
|
||||||
namespace Snap.Hutao.ViewModel;
|
namespace Snap.Hutao.ViewModel;
|
||||||
@@ -299,7 +300,13 @@ internal sealed class SettingViewModel : Abstraction.ViewModel
|
|||||||
|
|
||||||
private void CopyDeviceId()
|
private void CopyDeviceId()
|
||||||
{
|
{
|
||||||
Clipboard.SetText(DeviceId);
|
try
|
||||||
serviceProvider.GetRequiredService<IInfoBarService>().Success(SH.ViewModelSettingCopyDeviceIdSuccess);
|
{
|
||||||
|
Clipboard.SetText(DeviceId);
|
||||||
|
serviceProvider.GetRequiredService<IInfoBarService>().Success(SH.ViewModelSettingCopyDeviceIdSuccess);
|
||||||
|
}
|
||||||
|
catch (COMException)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user