summaryrefslogtreecommitdiffstats
path: root/application/MainWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-01-09 01:39:51 +0100
committerPetr Mrázek <peterix@gmail.com>2016-01-09 01:39:51 +0100
commit1f0e76a3c1fe9dfb702adbd8a1357abe06e22c35 (patch)
tree084447cdad1527695ec9a81ef5ce9d637a5474a7 /application/MainWindow.cpp
parentd8b1ae38fb8b9277597983040888eb0e32400ee9 (diff)
downloadMultiMC-1f0e76a3c1fe9dfb702adbd8a1357abe06e22c35.tar
MultiMC-1f0e76a3c1fe9dfb702adbd8a1357abe06e22c35.tar.gz
MultiMC-1f0e76a3c1fe9dfb702adbd8a1357abe06e22c35.tar.lz
MultiMC-1f0e76a3c1fe9dfb702adbd8a1357abe06e22c35.tar.xz
MultiMC-1f0e76a3c1fe9dfb702adbd8a1357abe06e22c35.zip
GH-1397 add discord icon to MultiMC toolbar
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r--application/MainWindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index c977715b..4673ca9f 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -116,6 +116,7 @@ public:
QAction *actionConfig_Folder;
QAction *actionCAT;
QAction *actionREDDIT;
+ QAction *actionDISCORD;
QAction *actionCopyInstance;
QAction *actionManageAccounts;
QAction *actionLaunchInstanceOffline;
@@ -200,6 +201,9 @@ public:
actionREDDIT = new QAction(MainWindow);
actionREDDIT->setObjectName(QStringLiteral("actionREDDIT"));
actionREDDIT->setIcon(MMC->getThemedIcon("reddit-alien"));
+ actionDISCORD = new QAction(MainWindow);
+ actionDISCORD->setObjectName(QStringLiteral("actionDISCORD"));
+ actionDISCORD->setIcon(MMC->getThemedIcon("discord"));
actionCopyInstance = new QAction(MainWindow);
actionCopyInstance->setObjectName(QStringLiteral("actionCopyInstance"));
actionCopyInstance->setIcon(MMC->getThemedIcon("copy"));
@@ -267,6 +271,7 @@ public:
mainToolBar->addSeparator();
mainToolBar->addAction(actionPatreon);
mainToolBar->addAction(actionREDDIT);
+ mainToolBar->addAction(actionDISCORD);
mainToolBar->addAction(actionCAT);
instanceToolBar->addAction(actionChangeInstIcon);
instanceToolBar->addAction(actionLaunchInstance);
@@ -358,6 +363,8 @@ public:
actionCAT->setToolTip(QApplication::translate("MainWindow", "<html><head/><body><p align=\"center\">It's a fluffy kitty :3</p></body></html>", 0));
actionREDDIT->setText(QApplication::translate("MainWindow", "Reddit", 0));
actionREDDIT->setToolTip(QApplication::translate("MainWindow", "Open MultiMC subreddit", 0));
+ actionDISCORD->setText(QApplication::translate("MainWindow", "Discord", 0));
+ actionDISCORD->setToolTip(QApplication::translate("MainWindow", "Open MultiMC discord voice chat", 0));
actionCopyInstance->setText(QApplication::translate("MainWindow", "Copy Instance", 0));
actionCopyInstance->setToolTip(QApplication::translate("MainWindow", "Copy the selected instance.", 0));
actionCopyInstance->setStatusTip(QApplication::translate("MainWindow", "Add a new instance.", 0));
@@ -1200,6 +1207,11 @@ void MainWindow::on_actionREDDIT_triggered()
DesktopServices::openUrl(QUrl("https://www.reddit.com/r/MultiMC/"));
}
+void MainWindow::on_actionDISCORD_triggered()
+{
+ DesktopServices::openUrl(QUrl("https://discord.gg/0k2zsXGNHs0fE4Wm"));
+}
+
void MainWindow::on_actionCopyInstance_triggered()
{
if (!m_selectedInstance)