mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-11-05 03:46:32 +00:00
fix: Process.pid and Quickshell.env returning undefined instead of null
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -79,7 +79,7 @@ void QuickshellGlobal::updateScreens() {
|
||||
|
||||
QVariant QuickshellGlobal::env(const QString& variable) { // NOLINT
|
||||
auto vstr = variable.toStdString();
|
||||
if (!qEnvironmentVariableIsSet(vstr.data())) return QVariant();
|
||||
if (!qEnvironmentVariableIsSet(vstr.data())) return QVariant::fromValue(nullptr);
|
||||
|
||||
return qEnvironmentVariable(vstr.data());
|
||||
}
|
||||
Reference in new issue
Block a user