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
3 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -3,9 +3,9 @@
#include "lowlevel_keyboard_event.h" #include "lowlevel_keyboard_event.h"
#include <algorithm> #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; return modules;
} }

View File

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