Add Privacy Center (Tor, GS-Warp, OpenVPN, GSocket, WireGuard), tunneled DNS, and stage a1105 (vendetta) changelog
This commit is contained in:
1 parent
471916424e
commit
2030201539
110 files changed
+5562
-37
No files matched your search
@@ -329,6 +329,9 @@ static const char *resolve_plugin_name_from_argv0(const char *argv0) {
|
||||
if (strcasecmp(base, "xengmenu") == 0 || strcasecmp(base, "engmenu") == 0) {
|
||||
return "engmenu";
|
||||
}
|
||||
if (strcasecmp(base, "xprivacy") == 0 || strcasecmp(base, "privacy") == 0) {
|
||||
return "privacy";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -426,7 +429,8 @@ int main(int argc, char **argv) {
|
||||
strcmp(plugin_name, "tox") == 0 ||
|
||||
strcmp(plugin_name, "irc") == 0 ||
|
||||
strcmp(plugin_name, "sip") == 0 ||
|
||||
strcmp(plugin_name, "engmenu") == 0)) {
|
||||
strcmp(plugin_name, "engmenu") == 0 ||
|
||||
strcmp(plugin_name, "privacy") == 0)) {
|
||||
const char *a1 = (sub_argc >= 2 && sub_argv[1]) ? sub_argv[1] : "";
|
||||
if (strcmp(a1, "--preload") != 0 && strcmp(a1, "close") != 0) {
|
||||
return 1;
|
||||
|
||||
@@ -1877,6 +1877,7 @@ inline void closeOtherPlugins(const char* selfPluginName) {
|
||||
{"xgps.pid", "gps"},
|
||||
{"xpasscode.pid", "passcode"},
|
||||
{"xengmenu.pid", "engmenu"},
|
||||
{"xprivacy.pid", "privacy"},
|
||||
};
|
||||
for (const auto& p : kAllPlugins) {
|
||||
if (selfPluginName && std::strcmp(p.name, selfPluginName) == 0) {
|
||||
@@ -1926,6 +1927,7 @@ inline bool isAnotherPluginActive(const char* selfPluginName) {
|
||||
{"xgps.pid", "gps"},
|
||||
{"xpasscode.pid", "passcode"},
|
||||
{"xengmenu.pid", "engmenu"},
|
||||
{"xprivacy.pid", "privacy"},
|
||||
};
|
||||
for (const auto& p : kAllPlugins) {
|
||||
if (selfPluginName && std::strcmp(p.name, selfPluginName) == 0) {
|
||||
@@ -2009,6 +2011,7 @@ inline void broadcastThemeReload(const char* selfPluginName = nullptr) {
|
||||
"gps",
|
||||
"passcode",
|
||||
"engmenu",
|
||||
"privacy",
|
||||
};
|
||||
for (const char* name : kPlugins) {
|
||||
if (selfPluginName && std::strcmp(name, selfPluginName) == 0) {
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user