Qt: Add link to Discord server in Help menu
This commit is contained in:
parent
1427e9f097
commit
32dbd173c5
|
@ -274,6 +274,11 @@ void MainWindow::onIssueTrackerActionTriggered()
|
||||||
OpenURL(this, "https://github.com/stenzek/duckstation/issues");
|
OpenURL(this, "https://github.com/stenzek/duckstation/issues");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::onDiscordServerActionTriggered()
|
||||||
|
{
|
||||||
|
OpenURL(this, "https://discord.gg/Buktv3t");
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::onAboutActionTriggered() {}
|
void MainWindow::onAboutActionTriggered() {}
|
||||||
|
|
||||||
void MainWindow::onGameListEntrySelected(const GameListEntry* entry)
|
void MainWindow::onGameListEntrySelected(const GameListEntry* entry)
|
||||||
|
@ -501,6 +506,7 @@ void MainWindow::connectSignals()
|
||||||
[this]() { doSettings(SettingsDialog::Category::AudioSettings); });
|
[this]() { doSettings(SettingsDialog::Category::AudioSettings); });
|
||||||
connect(m_ui.actionGitHubRepository, &QAction::triggered, this, &MainWindow::onGitHubRepositoryActionTriggered);
|
connect(m_ui.actionGitHubRepository, &QAction::triggered, this, &MainWindow::onGitHubRepositoryActionTriggered);
|
||||||
connect(m_ui.actionIssueTracker, &QAction::triggered, this, &MainWindow::onIssueTrackerActionTriggered);
|
connect(m_ui.actionIssueTracker, &QAction::triggered, this, &MainWindow::onIssueTrackerActionTriggered);
|
||||||
|
connect(m_ui.actionDiscordServer, &QAction::triggered, this, &MainWindow::onDiscordServerActionTriggered);
|
||||||
connect(m_ui.actionAbout, &QAction::triggered, this, &MainWindow::onAboutActionTriggered);
|
connect(m_ui.actionAbout, &QAction::triggered, this, &MainWindow::onAboutActionTriggered);
|
||||||
|
|
||||||
connect(m_host_interface, &QtHostInterface::errorReported, this, &MainWindow::reportError,
|
connect(m_host_interface, &QtHostInterface::errorReported, this, &MainWindow::reportError,
|
||||||
|
|
|
@ -46,6 +46,7 @@ private Q_SLOTS:
|
||||||
void onChangeDiscFromGameListActionTriggered();
|
void onChangeDiscFromGameListActionTriggered();
|
||||||
void onGitHubRepositoryActionTriggered();
|
void onGitHubRepositoryActionTriggered();
|
||||||
void onIssueTrackerActionTriggered();
|
void onIssueTrackerActionTriggered();
|
||||||
|
void onDiscordServerActionTriggered();
|
||||||
void onAboutActionTriggered();
|
void onAboutActionTriggered();
|
||||||
|
|
||||||
void onGameListEntrySelected(const GameListEntry* entry);
|
void onGameListEntrySelected(const GameListEntry* entry);
|
||||||
|
|
|
@ -102,6 +102,7 @@
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionGitHubRepository"/>
|
<addaction name="actionGitHubRepository"/>
|
||||||
<addaction name="actionIssueTracker"/>
|
<addaction name="actionIssueTracker"/>
|
||||||
|
<addaction name="actionDiscordServer"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionAbout"/>
|
<addaction name="actionAbout"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -314,6 +315,11 @@
|
||||||
<string>&Issue Tracker...</string>
|
<string>&Issue Tracker...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionDiscordServer">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Discord Server...</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
<action name="actionAbout">
|
<action name="actionAbout">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&About...</string>
|
<string>&About...</string>
|
||||||
|
|
Loading…
Reference in New Issue