mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix crash in Rule::apply
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
1724bdaeb9
commit
5d46f79f19
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ QJsonObject Rule::toJson()
|
|||
|
||||
Rule::Action Rule::apply(const RuntimeContext& runtimeContext)
|
||||
{
|
||||
if (!runtimeContext.classifierMatches(m_os->name))
|
||||
if (m_os.has_value() && !runtimeContext.classifierMatches(m_os->name))
|
||||
return Defer;
|
||||
|
||||
return m_action;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue