Skip to content

Commit

Permalink
feat(app #265): 新增PVN游玩游戏状态:什么都不做
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenPotato137 committed Sep 16, 2024
1 parent 357c0d9 commit 236ac26
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions GalgameManager/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ public static void SetWindowMode(WindowMode mode)
SystemTray?.Dispose();
_instance.Exit();
break;
case WindowMode.None:
break;
}
}
}
6 changes: 6 additions & 0 deletions GalgameManager/Enums/WindowMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,11 @@ public enum WindowMode
/// 启动中
/// </summary>
Booting,


/// <summary>
/// 游玩时pvn状态,None为什么都不做
/// </summary>
None,

}
3 changes: 3 additions & 0 deletions GalgameManager/Strings/zh-CN/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -1727,4 +1727,7 @@
<data name="GalgameSettingPage_TagsTitle.Text" xml:space="preserve">
<value>Tags</value>
</data>
<data name="WindowMode_None" xml:space="preserve">
<value>什么都不做</value>
</data>
</root>
2 changes: 1 addition & 1 deletion GalgameManager/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public SettingsViewModel(IThemeSelectorService themeSelectorService, ILocalSetti
//GAME
_recordOnlyForeground = _localSettingsService.ReadSettingAsync<bool>(KeyValues.RecordOnlyWhenForeground).Result;
_playingWindowMode = _localSettingsService.ReadSettingAsync<WindowMode>(KeyValues.PlayingWindowMode).Result;
PlayingWindowModes = new[] {WindowMode.Minimize, WindowMode.SystemTray };
PlayingWindowModes = new[] {WindowMode.Minimize, WindowMode.SystemTray, WindowMode.None };
//RSS
RssType = _localSettingsService.ReadSettingAsync<RssType>(KeyValues.RssType).Result;
//DOWNLOAD_BEHAVIOR
Expand Down

0 comments on commit 236ac26

Please sign in to comment.