UI: Add ability to join discord server from help menu
This commit is contained in:
parent
324071f5a3
commit
16ead25dd3
@ -534,6 +534,7 @@ Basic.MainMenu.Tools="&Tools"
|
||||
Basic.MainMenu.Help="&Help"
|
||||
Basic.MainMenu.Help.HelpPortal="Help &Portal"
|
||||
Basic.MainMenu.Help.Website="Visit &Website"
|
||||
Basic.MainMenu.Help.Discord="Join &Discord Server"
|
||||
Basic.MainMenu.Help.Logs="&Log Files"
|
||||
Basic.MainMenu.Help.Logs.ShowLogs="&Show Log Files"
|
||||
Basic.MainMenu.Help.Logs.UploadCurrentLog="Upload &Current Log File"
|
||||
|
@ -146,6 +146,7 @@
|
||||
</widget>
|
||||
<addaction name="actionHelpPortal"/>
|
||||
<addaction name="actionWebsite"/>
|
||||
<addaction name="actionDiscord"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="menuLogFiles"/>
|
||||
<addaction name="menuCrashLogs"/>
|
||||
@ -1650,6 +1651,11 @@
|
||||
<string>Basic.MainMenu.Help.CrashLogs.UploadLastLog</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDiscord">
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.Help.Discord</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
@ -5251,6 +5251,12 @@ void OBSBasic::on_actionWebsite_triggered()
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionDiscord_triggered()
|
||||
{
|
||||
QUrl url = QUrl("https://discord.gg/obsproject", QUrl::TolerantMode);
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionShowSettingsFolder_triggered()
|
||||
{
|
||||
char path[512];
|
||||
|
@ -651,6 +651,7 @@ private slots:
|
||||
|
||||
void on_actionHelpPortal_triggered();
|
||||
void on_actionWebsite_triggered();
|
||||
void on_actionDiscord_triggered();
|
||||
|
||||
void on_preview_customContextMenuRequested(const QPoint &pos);
|
||||
void on_program_customContextMenuRequested(const QPoint &pos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user