mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-12 04:33:10 +08:00
FZ: disable flash zones option for 0.16 (#1721)
* FZ: disable flash zones option for 0.16 * fixup! review comments
This commit is contained in:
parent
e794604cae
commit
d2a60c7287
@ -688,7 +688,9 @@ void FancyZones::AddZoneWindow(HMONITOR monitor, PCWSTR deviceId) noexcept
|
|||||||
JSONHelpers::FancyZonesDataInstance().SetActiveDeviceId(uniqueId);
|
JSONHelpers::FancyZonesDataInstance().SetActiveDeviceId(uniqueId);
|
||||||
|
|
||||||
const bool newWorkArea = IsNewWorkArea(m_currentVirtualDesktopId, monitor);
|
const bool newWorkArea = IsNewWorkArea(m_currentVirtualDesktopId, monitor);
|
||||||
const bool flash = m_settings->GetSettings()->zoneSetChange_flashZones && newWorkArea;
|
// "Turning FLASHING_ZONE option off"
|
||||||
|
//const bool flash = m_settings->GetSettings()->zoneSetChange_flashZones && newWorkArea;
|
||||||
|
const bool flash = false;
|
||||||
|
|
||||||
auto zoneWindow = MakeZoneWindow(this, m_hinstance, monitor, uniqueId, flash);
|
auto zoneWindow = MakeZoneWindow(this, m_hinstance, monitor, uniqueId, flash);
|
||||||
if (zoneWindow)
|
if (zoneWindow)
|
||||||
|
@ -36,10 +36,11 @@ private:
|
|||||||
PCWSTR name;
|
PCWSTR name;
|
||||||
bool* value;
|
bool* value;
|
||||||
int resourceId;
|
int resourceId;
|
||||||
} m_configBools[10] = {
|
} m_configBools[9 /* 10 */] = { // "Turning FLASHING_ZONE option off"
|
||||||
{ L"fancyzones_shiftDrag", &m_settings.shiftDrag, IDS_SETTING_DESCRIPTION_SHIFTDRAG },
|
{ L"fancyzones_shiftDrag", &m_settings.shiftDrag, IDS_SETTING_DESCRIPTION_SHIFTDRAG },
|
||||||
{ L"fancyzones_overrideSnapHotkeys", &m_settings.overrideSnapHotkeys, IDS_SETTING_DESCRIPTION_OVERRIDE_SNAP_HOTKEYS },
|
{ L"fancyzones_overrideSnapHotkeys", &m_settings.overrideSnapHotkeys, IDS_SETTING_DESCRIPTION_OVERRIDE_SNAP_HOTKEYS },
|
||||||
{ L"fancyzones_zoneSetChange_flashZones", &m_settings.zoneSetChange_flashZones, IDS_SETTING_DESCRIPTION_ZONESETCHANGE_FLASHZONES },
|
// "Turning FLASHING_ZONE option off"
|
||||||
|
//{ L"fancyzones_zoneSetChange_flashZones", &m_settings.zoneSetChange_flashZones, IDS_SETTING_DESCRIPTION_ZONESETCHANGE_FLASHZONES },
|
||||||
{ L"fancyzones_displayChange_moveWindows", &m_settings.displayChange_moveWindows, IDS_SETTING_DESCRIPTION_DISPLAYCHANGE_MOVEWINDOWS },
|
{ L"fancyzones_displayChange_moveWindows", &m_settings.displayChange_moveWindows, IDS_SETTING_DESCRIPTION_DISPLAYCHANGE_MOVEWINDOWS },
|
||||||
{ L"fancyzones_zoneSetChange_moveWindows", &m_settings.zoneSetChange_moveWindows, IDS_SETTING_DESCRIPTION_ZONESETCHANGE_MOVEWINDOWS },
|
{ L"fancyzones_zoneSetChange_moveWindows", &m_settings.zoneSetChange_moveWindows, IDS_SETTING_DESCRIPTION_ZONESETCHANGE_MOVEWINDOWS },
|
||||||
{ L"fancyzones_virtualDesktopChange_moveWindows", &m_settings.virtualDesktopChange_moveWindows, IDS_SETTING_DESCRIPTION_VIRTUALDESKTOPCHANGE_MOVEWINDOWS },
|
{ L"fancyzones_virtualDesktopChange_moveWindows", &m_settings.virtualDesktopChange_moveWindows, IDS_SETTING_DESCRIPTION_VIRTUALDESKTOPCHANGE_MOVEWINDOWS },
|
||||||
|
@ -737,6 +737,9 @@ void ZoneWindow::CycleActiveZoneSetInternal(DWORD wparam, Trace::ZoneWindow::Inp
|
|||||||
|
|
||||||
void ZoneWindow::FlashZones() noexcept
|
void ZoneWindow::FlashZones() noexcept
|
||||||
{
|
{
|
||||||
|
// "Turning FLASHING_ZONE option off"
|
||||||
|
if(true) return;
|
||||||
|
|
||||||
m_flashMode = true;
|
m_flashMode = true;
|
||||||
|
|
||||||
ShowWindow(m_window.get(), SW_SHOWNA);
|
ShowWindow(m_window.get(), SW_SHOWNA);
|
||||||
|
Loading…
Reference in New Issue
Block a user