MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / BackupCurrentSetting

Method BackupCurrentSetting

OpenGlassGUI/MainFrame.Core.cpp:429–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 }
428
429 void MainFrame::BackupCurrentSetting(const std::wstring& name)
430 {
431 RegistryConfig* config = GetConfigForKey(name);
432 if (!config || !config->HasValue(name))
433 {
434 m_backupSettings[name] = std::monostate{};
435 return;
436 }
437
438 std::wstring strVal = config->GetString(name, L"__MISSING__");
439 if (strVal != L"__MISSING__")
440 {
441 m_backupSettings[name] = strVal;
442 return;
443 }
444
445 m_backupSettings[name] = config->GetDword(name, 0);
446 }
447
448 void MainFrame::TrackSettingChange(const std::wstring& name)
449 {

Callers

nothing calls this directly

Calls 3

HasValueMethod · 0.80
GetStringMethod · 0.80
GetDwordMethod · 0.80

Tested by

no test coverage detected