mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Simplify app quitting implementation a bit
This commit is contained in:
@@ -20,6 +20,8 @@ class Session : public QObject
|
||||
public:
|
||||
explicit Session(NvComputer* computer, NvApp& app, StreamingPreferences *preferences = nullptr);
|
||||
|
||||
virtual ~Session();
|
||||
|
||||
Q_INVOKABLE void exec(int displayOriginX, int displayOriginY);
|
||||
|
||||
static
|
||||
@@ -30,10 +32,6 @@ public:
|
||||
int getDecoderCapabilities(StreamingPreferences::VideoDecoderSelection vds,
|
||||
int videoFormat, int width, int height, int frameRate);
|
||||
|
||||
NvComputer* getComputer() const;
|
||||
|
||||
Q_INVOKABLE bool shouldQuitAppAfter() const;
|
||||
|
||||
signals:
|
||||
void stageStarting(QString stage);
|
||||
|
||||
@@ -45,6 +43,10 @@ signals:
|
||||
|
||||
void displayLaunchWarning(QString text);
|
||||
|
||||
void quitStarting();
|
||||
|
||||
void sessionFinished();
|
||||
|
||||
private:
|
||||
void initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user