From d862e0ada651e5637e6924062d03f403ac4c642a Mon Sep 17 00:00:00 2001 From: Asval Date: Mon, 10 Aug 2026 21:36:31 +0200 Subject: [PATCH] remove criware key --- FModel/Views/SettingsView.xaml.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/FModel/Views/SettingsView.xaml.cs b/FModel/Views/SettingsView.xaml.cs index 7702ab0c..be5d665c 100644 --- a/FModel/Views/SettingsView.xaml.cs +++ b/FModel/Views/SettingsView.xaml.cs @@ -252,13 +252,15 @@ public partial class SettingsView if (sender is not TextBox textBox) return; - string input = textBox.Text?.Trim() ?? string.Empty; - + var input = textBox.Text.Trim(); if (string.IsNullOrEmpty(input)) - return; - - if (TryParseKey(input, out ulong parsed)) + { + _applicationView.SettingsView.CriwareDecryptionKey = 0; + } + else if (TryParseKey(input, out ulong parsed)) + { _applicationView.SettingsView.CriwareDecryptionKey = parsed; + } } private static bool TryParseKey(string text, out ulong value)