2024-12-05 20:55:52 +00:00
|
|
|
#include "UpdateScreen.hpp"
|
2024-12-11 17:21:40 +00:00
|
|
|
|
2024-12-05 20:55:52 +00:00
|
|
|
#include <print>
|
2025-01-05 23:06:39 +01:00
|
|
|
#include <QDesktopServices>
|
2024-12-11 17:21:40 +00:00
|
|
|
|
2024-12-05 20:55:52 +00:00
|
|
|
#include <hyprutils/string/String.hpp>
|
|
|
|
|
#include <hyprutils/os/Process.hpp>
|
|
|
|
|
using namespace Hyprutils::String;
|
|
|
|
|
|
|
|
|
|
CUpdateScreen::CUpdateScreen(QObject* parent) : QObject(parent) {
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CUpdateScreen::onButtonPress(QString buttonName) {
|
2024-12-11 17:21:40 +00:00
|
|
|
if (buttonName == "quit")
|
2024-12-05 20:55:52 +00:00
|
|
|
exit(0);
|
2025-01-05 23:06:39 +01:00
|
|
|
if (buttonName == "donate")
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://hyprland.org/support"));
|
2024-12-05 20:55:52 +00:00
|
|
|
}
|