|
|
@ -14,7 +14,6 @@
|
|
|
|
#include <QSystemTrayIcon>
|
|
|
|
#include <QSystemTrayIcon>
|
|
|
|
#include <QtDBus/QtDBus>
|
|
|
|
#include <QtDBus/QtDBus>
|
|
|
|
#include <QTimer>
|
|
|
|
#include <QTimer>
|
|
|
|
#include <QMessageBox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
QApplication app(argc, argv);
|
|
|
@ -67,13 +66,6 @@ int main(int argc, char *argv[]) {
|
|
|
|
QVariant newSubState = unit.property("SubState");
|
|
|
|
QVariant newSubState = unit.property("SubState");
|
|
|
|
if (newState.toString() == "active" && newSubState.toString() == "exited") {
|
|
|
|
if (newState.toString() == "active" && newSubState.toString() == "exited") {
|
|
|
|
trayIcon.hide();
|
|
|
|
trayIcon.hide();
|
|
|
|
QMessageBox messageBox;
|
|
|
|
|
|
|
|
messageBox.setIcon(QMessageBox::Information);
|
|
|
|
|
|
|
|
messageBox.setText("Background snap installation is complete.");
|
|
|
|
|
|
|
|
messageBox.setWindowTitle("Installation Complete");
|
|
|
|
|
|
|
|
messageBox.setStandardButtons(QMessageBox::Ok);
|
|
|
|
|
|
|
|
messageBox.exec();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QApplication::quit();
|
|
|
|
QApplication::quit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|