Skip to content

Commit

Permalink
修正Win11下使用startallback改为旧版任务栏时,任务栏窗口设置中“任务栏窗口显示在任务栏左侧”的选项仍然被禁用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed Jan 21, 2025
1 parent b6f8ef0 commit 6ad9a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrafficMonitor/TaskBarSettingsDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void CTaskBarSettingsDlg::EnableControl()
bool taskbar_on_left_check = (IsDlgButtonChecked(IDC_TASKBAR_WND_ON_LEFT_CHECK) != FALSE);
EnableDlgCtrl(IDC_TASKBAR_WND_SNAP_CHECK, CTaskBarDlg::IsTaskbarCloseToIconEnable(taskbar_on_left_check));
//Win11下,任务栏左对齐时禁用“任务栏窗口显示在任务栏左侧”的选项
EnableDlgCtrl(IDC_TASKBAR_WND_ON_LEFT_CHECK, !theApp.m_win_version.IsWindows11OrLater() || CWindowsSettingHelper::IsTaskbarCenterAlign());
EnableDlgCtrl(IDC_TASKBAR_WND_ON_LEFT_CHECK, !theApp.m_is_windows11_taskbar || CWindowsSettingHelper::IsTaskbarCenterAlign());
EnableDlgCtrl(IDC_ENABLE_COLOR_EMOJI_CHECK, !m_data.disable_d2d);
}

Expand Down

0 comments on commit 6ad9a83

Please sign in to comment.