Skip to content

Commit

Permalink
fix: make mime-type based calls work again
Browse files Browse the repository at this point in the history
  • Loading branch information
cajus committed Feb 17, 2025
1 parent c5088c6 commit 56edb2c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/StateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,15 @@ void StateManager::ActivateAction(const QString &action_name, const QVariantList
}
}

void StateManager::Open(const QStringList &, const QVariantMap &)
void StateManager::Open(const QStringList &args, const QVariantMap &)
{
qobject_cast<Application *>(Application::instance())->rootWindow()->show();
if (args.length()) {
QVariantList vArgs;
for (auto& arg : std::as_const(args)) {
vArgs.push_back(arg);
}
ActivateAction("invoke", vArgs, {});
} else {
qobject_cast<Application *>(Application::instance())->rootWindow()->show();
}
}

0 comments on commit 56edb2c

Please sign in to comment.