mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
Merge pull request #9501 from Atlante45/fix/steam-api
Fix Steam scripting interface calls
This commit is contained in:
commit
d607e74d3c
1 changed files with 5 additions and 5 deletions
|
@ -43,14 +43,14 @@ public:
|
|||
class SteamScriptingInterface : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(bool isRunning READ isRunning)
|
||||
Q_PROPERTY(bool running READ isRunning)
|
||||
|
||||
public:
|
||||
SteamScriptingInterface(QObject* parent, SteamClientPlugin* plugin) : QObject(parent) {}
|
||||
SteamScriptingInterface(QObject* parent, SteamClientPlugin* plugin) : QObject(parent), _plugin(plugin) {}
|
||||
|
||||
public slots:
|
||||
bool isRunning() const { return _plugin->isRunning(); }
|
||||
void openInviteOverlay() const { _plugin->openInviteOverlay(); }
|
||||
public slots:
|
||||
bool isRunning() const { return _plugin && _plugin->isRunning(); }
|
||||
void openInviteOverlay() const { if (_plugin) { _plugin->openInviteOverlay(); } }
|
||||
|
||||
private:
|
||||
SteamClientPlugin* _plugin;
|
||||
|
|
Loading…
Reference in a new issue