mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
UI - Large amount of memory improvements in the VMs
Core - Minor memory improvements
This commit is contained in:
1 parent
63cb6d211e
commit
24afb6b0f5
26 files changed
+243
-191
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using RGB.NET.Core;
|
||||
using System.Text;
|
||||
using RGB.NET.Core;
|
||||
|
||||
namespace Artemis.Core.Extensions
|
||||
{
|
||||
@@ -6,11 +7,17 @@ namespace Artemis.Core.Extensions
|
||||
{
|
||||
public static string GetDeviceIdentifier(this IRGBDevice rgbDevice)
|
||||
{
|
||||
return rgbDevice.DeviceInfo.DeviceName +
|
||||
"-" + rgbDevice.DeviceInfo.Manufacturer +
|
||||
"-" + rgbDevice.DeviceInfo.Model +
|
||||
"-" + rgbDevice.DeviceInfo.DeviceType +
|
||||
"-" + rgbDevice.DeviceInfo.Lighting;
|
||||
var builder = new StringBuilder();
|
||||
builder.Append(rgbDevice.DeviceInfo.DeviceName);
|
||||
builder.Append('-');
|
||||
builder.Append(rgbDevice.DeviceInfo.Manufacturer);
|
||||
builder.Append('-');
|
||||
builder.Append(rgbDevice.DeviceInfo.Model);
|
||||
builder.Append('-');
|
||||
builder.Append(rgbDevice.DeviceInfo.DeviceType);
|
||||
builder.Append('-');
|
||||
builder.Append(rgbDevice.DeviceInfo.Lighting);
|
||||
return builder.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user