Order PowerToys aplhabetically Settings (#1706)

* Order PowerToys aplhabetically in both Settings list and General Settings enable's list

* Remove uneeded include
This commit is contained in:
stefansjfw 2020-03-26 11:51:05 +01:00 committed by GitHub
parent e85427f1da
commit 5a5b5292a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ struct GeneralSettings
bool isPackaged;
bool isStartupEnabled;
std::wstring startupDisabledReason;
std::unordered_map<std::wstring, bool> isModulesEnabledMap;
std::map<std::wstring, bool> isModulesEnabledMap;
bool isElevated;
bool isRunElevated;
bool isAdmin;

View File

@ -3,9 +3,9 @@
#include "lowlevel_keyboard_event.h"
#include <algorithm>
std::unordered_map<std::wstring, PowertoyModule>& modules()
std::map<std::wstring, PowertoyModule>& modules()
{
static std::unordered_map<std::wstring, PowertoyModule> modules;
static std::map<std::wstring, PowertoyModule> modules;
return modules;
}

View File

@ -50,4 +50,4 @@ private:
};
PowertoyModule load_powertoy(const std::wstring& filename);
std::unordered_map<std::wstring, PowertoyModule>& modules();
std::map<std::wstring, PowertoyModule>& modules();