File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
#include " UpdateScreen.hpp"
2
2
3
3
#include < print>
4
+ #include < QDesktopServices>
4
5
5
6
#include < hyprutils/string/String.hpp>
6
7
#include < hyprutils/os/Process.hpp>
@@ -13,4 +14,6 @@ CUpdateScreen::CUpdateScreen(QObject* parent) : QObject(parent) {
13
14
void CUpdateScreen::onButtonPress (QString buttonName) {
14
15
if (buttonName == " quit" )
15
16
exit (0 );
17
+ if (buttonName == " donate" )
18
+ QDesktopServices::openUrl (QUrl (" https://hyprland.org/support" ));
16
19
}
Original file line number Diff line number Diff line change @@ -79,6 +79,13 @@ ApplicationWindow {
79
79
Layout .leftMargin : 20
80
80
Layout .alignment : Qt .AlignRight
81
81
82
+ Button {
83
+ text: " Support the project"
84
+ onClicked : (e ) => {
85
+ updateScreen .onButtonPress (" donate" );
86
+ }
87
+ }
88
+
82
89
Button {
83
90
text: " Don't show this when I update"
84
91
onClicked : (e ) => {
You can’t perform that action at this time.
0 commit comments