Skip to content

Commit e89fae3

Browse files
committed
小优化
1 parent 03c83d4 commit e89fae3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ComputerLock/Configuration/AppSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void Initialize(HotkeyTools hotkeyTools)
3333
/// <summary>
3434
/// Windows 锁定时自动解锁程序
3535
/// </summary>
36-
public bool IsUnlockWhenWindowsLock { get; set; } = false;
36+
public bool IsUnlockWhenWindowsLock { get; set; } = true;
3737

3838
/// <summary>
3939
/// 锁定时显示动画

src/ComputerLock/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Color="Color.Primary" />
2121
</MudTooltip>
2222
</div>
23-
<div class="d-flex">
23+
<div class="d-flex align-center">
2424
<MudSwitch @bind-Value="@(AppSettings.IsUnlockWhenWindowsLock)"
2525
@bind-Value:after="SaveSettings"
2626
Label="@(Lang["IdleWhenWindowsLock"])"

src/ComputerLock/Resources/Lang.zh.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
<value>已锁定</value>
236236
</data>
237237
<data name="AutoLock" xml:space="preserve">
238-
<value>空闲自动锁定(分钟,0不启用)</value>
238+
<value>无操作时自动锁定(分钟,0不启用)</value>
239239
</data>
240240
<data name="Never" xml:space="preserve">
241241
<value>从不</value>

0 commit comments

Comments
 (0)