Skip to content

Commit

Permalink
小优化
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuLing-zhang committed Feb 13, 2025
1 parent 03c83d4 commit e89fae3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ComputerLock/Configuration/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void Initialize(HotkeyTools hotkeyTools)
/// <summary>
/// Windows 锁定时自动解锁程序
/// </summary>
public bool IsUnlockWhenWindowsLock { get; set; } = false;
public bool IsUnlockWhenWindowsLock { get; set; } = true;

/// <summary>
/// 锁定时显示动画
Expand Down
2 changes: 1 addition & 1 deletion src/ComputerLock/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Color="Color.Primary" />
</MudTooltip>
</div>
<div class="d-flex">
<div class="d-flex align-center">
<MudSwitch @bind-Value="@(AppSettings.IsUnlockWhenWindowsLock)"
@bind-Value:after="SaveSettings"
Label="@(Lang["IdleWhenWindowsLock"])"
Expand Down
2 changes: 1 addition & 1 deletion src/ComputerLock/Resources/Lang.zh.resx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
<value>已锁定</value>
</data>
<data name="AutoLock" xml:space="preserve">
<value>空闲自动锁定(分钟,0不启用)</value>
<value>无操作时自动锁定(分钟,0不启用)</value>
</data>
<data name="Never" xml:space="preserve">
<value>从不</value>
Expand Down

0 comments on commit e89fae3

Please sign in to comment.