mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-05 11:28:22 +08:00
Restored lost files and changes in version 1.3.1 to depot.
This commit is contained in:
@@ -79,6 +79,8 @@ CGlobalOptions::init(HWND hwnd)
|
||||
setItemChecked(child, true);
|
||||
child = getItem(hwnd, IDC_GLOBAL_RELATIVE_MOVES);
|
||||
setItemChecked(child, false);
|
||||
child = getItem(hwnd, IDC_GLOBAL_LEAVE_FOREGROUND);
|
||||
setItemChecked(child, false);
|
||||
|
||||
// get the global options
|
||||
const CConfig::CScreenOptions* options = m_config->getOptions("");
|
||||
@@ -122,6 +124,10 @@ CGlobalOptions::init(HWND hwnd)
|
||||
child = getItem(hwnd, IDC_GLOBAL_RELATIVE_MOVES);
|
||||
setItemChecked(child, (value != 0));
|
||||
}
|
||||
else if (id == kOptionWin32KeepForeground) {
|
||||
child = getItem(hwnd, IDC_GLOBAL_LEAVE_FOREGROUND);
|
||||
setItemChecked(child, (value != 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -187,6 +193,7 @@ CGlobalOptions::save(HWND hwnd)
|
||||
m_config->removeOption("", kOptionHeartbeat);
|
||||
m_config->removeOption("", kOptionScreenSaverSync);
|
||||
m_config->removeOption("", kOptionRelativeMouseMoves);
|
||||
m_config->removeOption("", kOptionWin32KeepForeground);
|
||||
|
||||
// add requested options
|
||||
child = getItem(hwnd, IDC_GLOBAL_DELAY_CHECK);
|
||||
@@ -209,6 +216,10 @@ CGlobalOptions::save(HWND hwnd)
|
||||
if (isItemChecked(child)) {
|
||||
m_config->addOption("", kOptionRelativeMouseMoves, 1);
|
||||
}
|
||||
child = getItem(hwnd, IDC_GLOBAL_LEAVE_FOREGROUND);
|
||||
if (isItemChecked(child)) {
|
||||
m_config->addOption("", kOptionWin32KeepForeground, 1);
|
||||
}
|
||||
|
||||
// save last values
|
||||
m_delayTime = newDelayTime;
|
||||
|
||||
Reference in New Issue
Block a user