mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
ui: Enable multi viewports on Linux again if you're not on Wayland
This commit is contained in:
@@ -451,4 +451,13 @@ namespace hex {
|
||||
#endif
|
||||
}
|
||||
|
||||
std::optional<std::string> getEnvironmentVariable(const std::string &env) {
|
||||
auto value = std::getenv(env.c_str());
|
||||
|
||||
if (value == nullptr)
|
||||
return std::nullopt;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user