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 <collecting@noreply.localhost>
This commit is contained in:
Collecting
2025-12-11 03:16:46 +00:00
parent f74fda2d56
commit dd215ef836

View File

@@ -3926,7 +3926,23 @@ void GMainWindow::OpenURL(const QUrl& url) {
}
void GMainWindow::OnOpenSupport() {
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() {