mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Linux - input identification fixes
This commit is contained in:
1 parent
497b6e0742
commit
97b858b332
2 files changed
+11
-7
No files matched your search
@@ -7,6 +7,7 @@ using Artemis.Core.Services;
|
||||
using Artemis.UI.Shared;
|
||||
using Artemis.UI.Shared.Services;
|
||||
using Artemis.UI.Shared.Services.Builders;
|
||||
using Avalonia.Threading;
|
||||
using FluentAvalonia.UI.Controls;
|
||||
using ReactiveUI;
|
||||
using RGB.NET.Core;
|
||||
@@ -57,10 +58,13 @@ public class DeviceDetectInputViewModel : ContentDialogViewModelBase
|
||||
|
||||
private void InputServiceOnDeviceIdentified()
|
||||
{
|
||||
ContentDialog?.Hide(ContentDialogResult.Primary);
|
||||
_notificationService.CreateNotification()
|
||||
.WithMessage($"{Device.RgbDevice.DeviceInfo.DeviceName} identified 😁")
|
||||
.WithSeverity(NotificationSeverity.Success)
|
||||
.Show();
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
ContentDialog?.Hide(ContentDialogResult.Primary);
|
||||
_notificationService.CreateNotification()
|
||||
.WithMessage($"{Device.RgbDevice.DeviceInfo.DeviceName} identified 😁")
|
||||
.WithSeverity(NotificationSeverity.Success)
|
||||
.Show();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user