(client)chore:将维度区分独立,将加载页面独立,降低代码耦合,写了更好看的注释
This commit is contained in:
@ -105,7 +105,7 @@ namespace Base
|
||||
// 如果窗口是独占的,隐藏所有其他窗口
|
||||
if (windowToShow.exclusive)
|
||||
{
|
||||
List<UIBase> windowsToHide = new List<UIBase>(_visibleWindows);
|
||||
var windowsToHide = new List<UIBase>(_visibleWindows);
|
||||
foreach (var visibleWindow in windowsToHide)
|
||||
{
|
||||
Hide(visibleWindow);
|
||||
@ -172,7 +172,7 @@ namespace Base
|
||||
/// </summary>
|
||||
private void UpdatePauseState()
|
||||
{
|
||||
bool shouldPause = _visibleWindows.Any(w => w.needPause);
|
||||
var shouldPause = _visibleWindows.Any(w => w.needPause);
|
||||
if (Base.Clock.Instance.Pause != shouldPause)
|
||||
{
|
||||
Base.Clock.Instance.Pause = shouldPause;
|
||||
|
Reference in New Issue
Block a user