mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-06-14 03:16:38 +10:00
ModernSettings: Add support for more settings
Based on `HostId`:
* {7E0522FC-1AC4-41CA-AFD0-3610417A9C41}
execute `shell:::{PageId}`
* {12B1697E-D3A0-4DBC-B568-CCF64A3F934D}
execute command in `DeepLink`
This commit is contained in:
@@ -359,13 +359,13 @@ ModernSettings::Setting::Setting(const Blob& blob)
|
||||
});
|
||||
}
|
||||
|
||||
std::vector<ModernSettings::Setting> ModernSettings::enumerate() const
|
||||
std::vector<std::wstring_view> ModernSettings::enumerate() const
|
||||
{
|
||||
std::vector<ModernSettings::Setting> retval;
|
||||
std::vector<std::wstring_view> retval;
|
||||
retval.reserve(m_settings.size());
|
||||
|
||||
for (const auto& i : m_settings)
|
||||
retval.emplace_back(i.second);
|
||||
retval.emplace_back(i.first);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user