mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 21:07:45 +00:00
Remove unneccesary stub in watchdog
This commit is contained in:
parent
0242a77e5e
commit
9e9cfc7153
1 changed files with 1 additions and 7 deletions
|
@ -5,7 +5,6 @@
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/extensions/Xcomposite.h>
|
#include <X11/extensions/Xcomposite.h>
|
||||||
|
@ -60,12 +59,8 @@ QImage qimageFromXImage(XImage *xi) {
|
||||||
|
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void Watchdog::launchGame(const ProfileSettings &settings, LoginAuth auth) {
|
void Watchdog::launchGame(const ProfileSettings &settings, LoginAuth auth) {
|
||||||
// TODO: stubbed out on other platforms
|
|
||||||
// (you can't actually enable it on other platforms, so this is fine for now.)
|
|
||||||
#if defined(Q_OS_LINUX)
|
|
||||||
if(icon == nullptr) {
|
if(icon == nullptr) {
|
||||||
icon = new QSystemTrayIcon();
|
icon = new QSystemTrayIcon();
|
||||||
}
|
}
|
||||||
|
@ -180,5 +175,4 @@ void Watchdog::launchGame(const ProfileSettings &settings, LoginAuth auth) {
|
||||||
});
|
});
|
||||||
|
|
||||||
timer->start(5000);
|
timer->start(5000);
|
||||||
#endif
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue