hyprland-qtutils/utils/update-screen/UpdateScreen.cpp

20 lines
471 B
C++
Raw Permalink Normal View History

2024-12-05 20:55:52 +00:00
#include "UpdateScreen.hpp"
2024-12-05 20:55:52 +00:00
#include <print>
2025-01-05 23:06:39 +01:00
#include <QDesktopServices>
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) {
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
}