From 8550a943ff7d660f207eb764d71dccb3754b9fc5 Mon Sep 17 00:00:00 2001 From: TTLC198 <41226242+TTLC198@users.noreply.github.com> Date: Sat, 9 Sep 2023 16:52:41 +0300 Subject: [PATCH] Fixed maximum length for custom object name --- .../ViewModels/Settings/AppearanceSettingsTabViewModel.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/HSMonitor/ViewModels/Settings/AppearanceSettingsTabViewModel.cs b/HSMonitor/ViewModels/Settings/AppearanceSettingsTabViewModel.cs index 54af9ad..298ed05 100644 --- a/HSMonitor/ViewModels/Settings/AppearanceSettingsTabViewModel.cs +++ b/HSMonitor/ViewModels/Settings/AppearanceSettingsTabViewModel.cs @@ -76,10 +76,9 @@ public bool IsAutoDetectHardwareEnabled } } - public int CustomNameMaxLength => - SettingsService.Settings.IsDeviceBackwardCompatibilityEnabled + public int CustomNameMaxLength => SettingsService.Settings.IsDeviceBackwardCompatibilityEnabled ? 23 - : 50; + : 30; public AppearanceSettingsTabViewModel(SettingsService settingsService, HardwareMonitorService hardwareMonitorService) : base(settingsService, 2, "Appearance")