Skip to content

Commit 529050a

Browse files
author
LAB02 Research
committed
v2022.3.15.2
1 parent f2e57a8 commit 529050a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/DeepLClient/DeepLClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ImplicitUsings>enable</ImplicitUsings>
99
<ApplicationIcon>Resources\icon_white_32.ico</ApplicationIcon>
1010
<Title>DeepL Translator</Title>
11-
<Version>2023.3.15.1</Version>
11+
<Version>2023.3.15.2</Version>
1212
<Authors>LAB02 RESEARCH</Authors>
1313
<Description>Front-end client for DeepL translation services.</Description>
1414
</PropertyGroup>

src/DeepLClient/Forms/Main.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ private async void Initialize()
9797
return;
9898
}
9999

100+
// optionally re-enable subscription button
101+
if (!BtnSubscription.Enabled) BtnSubscription.Enabled = true;
102+
100103
// optionally remove current pages
101104
ClearTabPages();
102105

src/DeepLClient/Managers/SubscriptionManager.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ internal static class SubscriptionManager
1414
/// </summary>
1515
internal static void Initialize()
1616
{
17-
// only free subscriptions atm
18-
// todo: monitor pro cost limit
19-
if (!UsingFreeSubscription()) return;
20-
2117
// start monitoring subscription limits
2218
_ = Task.Run(MonitorLimits);
2319
}
@@ -28,6 +24,9 @@ private static async void MonitorLimits()
2824
{
2925
try
3026
{
27+
// only on free
28+
if (!UsingFreeSubscription()) continue;
29+
3130
// check if the manager's ready
3231
while (!DeepLManager.IsInitialised) await Task.Delay(150);
3332

0 commit comments

Comments
 (0)