Commit 9d5930e9 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Add Microsoft Edge environment

microsoft-edge.desktop will be the desktop file name used by the
stable version once it's released.

Effectively, the Task Manager method would be used mainly anyway.
parent e97df376
......@@ -47,7 +47,8 @@ const QMap<Settings::Environment, QString> Settings::environmentNames = {
{Settings::Environment::Firefox, QStringLiteral("firefox")},
{Settings::Environment::Opera, QStringLiteral("opera")},
{Settings::Environment::Vivaldi, QStringLiteral("vivaldi")},
{Settings::Environment::Brave, QStringLiteral("brave")}
{Settings::Environment::Brave, QStringLiteral("brave")},
{Settings::Environment::Edge, QStringLiteral("edge")}
};
const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentDescriptions = {
......@@ -99,6 +100,14 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("brave.com"),
QStringLiteral("Brave"),
QStringLiteral("brave")
} },
{Settings::Environment::Edge, {
QStringLiteral("Edge"),
QStringLiteral("Microsoft Edge"),
QStringLiteral("microsoft-edge"),
QStringLiteral("microsoft.com"),
QStringLiteral("Microsoft"),
QStringLiteral("microsoft-edge")
} }
};
......@@ -245,6 +254,8 @@ void Settings::setEnvironmentFromExtensionMessage(const QJsonObject &data)
name = QStringLiteral("vivaldi");
} else if (processInfo.name().contains(QLatin1String("brave"))) {
name = QStringLiteral("brave");
} else if (processInfo.name().contains(QLatin1String("edge"))) {
name = QStringLiteral("edge");
}
}
......
......@@ -60,7 +60,8 @@ public:
Firefox,
Opera,
Vivaldi,
Brave
Brave,
Edge
};
Q_ENUM(Environment)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment