diff --git a/src/DeepLClient/DeepLClient.csproj b/src/DeepLClient/DeepLClient.csproj index f662d55..f9ef108 100644 --- a/src/DeepLClient/DeepLClient.csproj +++ b/src/DeepLClient/DeepLClient.csproj @@ -8,7 +8,7 @@ enable Resources\icon_white_32.ico DeepL Translator - 2023.3.15.1 + 2023.3.15.2 LAB02 RESEARCH Front-end client for DeepL translation services. diff --git a/src/DeepLClient/Forms/Main.cs b/src/DeepLClient/Forms/Main.cs index d7c02f8..fb4f267 100644 --- a/src/DeepLClient/Forms/Main.cs +++ b/src/DeepLClient/Forms/Main.cs @@ -97,6 +97,9 @@ private async void Initialize() return; } + // optionally re-enable subscription button + if (!BtnSubscription.Enabled) BtnSubscription.Enabled = true; + // optionally remove current pages ClearTabPages(); diff --git a/src/DeepLClient/Managers/SubscriptionManager.cs b/src/DeepLClient/Managers/SubscriptionManager.cs index a9aa8c5..f6b97d6 100644 --- a/src/DeepLClient/Managers/SubscriptionManager.cs +++ b/src/DeepLClient/Managers/SubscriptionManager.cs @@ -14,10 +14,6 @@ internal static class SubscriptionManager /// internal static void Initialize() { - // only free subscriptions atm - // todo: monitor pro cost limit - if (!UsingFreeSubscription()) return; - // start monitoring subscription limits _ = Task.Run(MonitorLimits); } @@ -28,6 +24,9 @@ private static async void MonitorLimits() { try { + // only on free + if (!UsingFreeSubscription()) continue; + // check if the manager's ready while (!DeepLManager.IsInitialised) await Task.Delay(150);