From dd215ef8360cf87488896773c0b5b6919a5e556c Mon Sep 17 00:00:00 2001 From: Collecting Date: Thu, 11 Dec 2025 03:16:46 +0000 Subject: [PATCH] feat: Warning Dialogs for Discord Support Help People started coming into the server stating that it was meant for stuff that we do not help people with. People don't enjoy reading rules, now there's 2 QDialog warnings to ensure people are forced to read. Signed-off-by: Collecting --- src/citron/main.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/citron/main.cpp b/src/citron/main.cpp index 66012394c..f7f864ed8 100644 --- a/src/citron/main.cpp +++ b/src/citron/main.cpp @@ -3926,7 +3926,23 @@ void GMainWindow::OpenURL(const QUrl& url) { } void GMainWindow::OnOpenSupport() { - OpenURL(QUrl(QStringLiteral("https://discord.gg/citron"))); + QMessageBox::StandardButton first_warning; + first_warning = QMessageBox::question(this, tr("Discord Server Rules"), + tr("WARNING: Before joining the Citron Discord server, you will be required to accept the rules of the server before talking in off-topic channels. Do you understand you must follow & read the #rules upon entering the server?"), + QMessageBox::Yes | QMessageBox::No, + QMessageBox::Yes); + + if (first_warning == QMessageBox::Yes) { + QMessageBox::StandardButton second_warning; + second_warning = QMessageBox::question(this, tr("Final Confirmation"), + tr("WARNING: Are you sure you understand that you must follow the rules of the Discord before asking for support?"), + QMessageBox::Yes | QMessageBox::No, + QMessageBox::Yes); + + if (second_warning == QMessageBox::Yes) { + OpenURL(QUrl(QStringLiteral("https://discord.gg/citron"))); + } + } } void GMainWindow::ToggleFullscreen() {