Add a button to open the account list.
Also fix the account list dialog's close button.
This commit is contained in:
parent
928e0d0b15
commit
03652b01d2
@ -57,6 +57,7 @@
|
|||||||
#include "gui/dialogs/IconPickerDialog.h"
|
#include "gui/dialogs/IconPickerDialog.h"
|
||||||
#include "gui/dialogs/EditNotesDialog.h"
|
#include "gui/dialogs/EditNotesDialog.h"
|
||||||
#include "gui/dialogs/CopyInstanceDialog.h"
|
#include "gui/dialogs/CopyInstanceDialog.h"
|
||||||
|
#include "gui/dialogs/AccountListDialog.h"
|
||||||
|
|
||||||
#include "gui/ConsoleWindow.h"
|
#include "gui/ConsoleWindow.h"
|
||||||
|
|
||||||
@ -427,6 +428,12 @@ void MainWindow::on_actionSettings_triggered()
|
|||||||
proxymodel->sort(0);
|
proxymodel->sort(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionManageAccounts_triggered()
|
||||||
|
{
|
||||||
|
AccountListDialog dialog(this);
|
||||||
|
dialog.exec();
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionReportBug_triggered()
|
void MainWindow::on_actionReportBug_triggered()
|
||||||
{
|
{
|
||||||
openWebPage(QUrl("http://multimc.myjetbrains.com/youtrack/dashboard#newissue=yes"));
|
openWebPage(QUrl("http://multimc.myjetbrains.com/youtrack/dashboard#newissue=yes"));
|
||||||
|
@ -79,6 +79,8 @@ slots:
|
|||||||
|
|
||||||
void on_actionSettings_triggered();
|
void on_actionSettings_triggered();
|
||||||
|
|
||||||
|
void on_actionManageAccounts_triggered();
|
||||||
|
|
||||||
void on_actionReportBug_triggered();
|
void on_actionReportBug_triggered();
|
||||||
|
|
||||||
void on_actionNews_triggered();
|
void on_actionNews_triggered();
|
||||||
|
@ -70,6 +70,7 @@
|
|||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionCheckUpdate"/>
|
<addaction name="actionCheckUpdate"/>
|
||||||
<addaction name="actionSettings"/>
|
<addaction name="actionSettings"/>
|
||||||
|
<addaction name="actionManageAccounts"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionReportBug"/>
|
<addaction name="actionReportBug"/>
|
||||||
<addaction name="actionNews"/>
|
<addaction name="actionNews"/>
|
||||||
@ -465,6 +466,14 @@
|
|||||||
<string>Add a new instance.</string>
|
<string>Add a new instance.</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionManageAccounts">
|
||||||
|
<property name="text">
|
||||||
|
<string>Manage Accounts</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Manage your Mojang or Minecraft accounts.</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -56,7 +56,7 @@ void AccountListDialog::on_editAccountBtn_clicked()
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccountListDialog::on_closedBtnBox_rejected()
|
void AccountListDialog::on_closeBtnBox_rejected()
|
||||||
{
|
{
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ slots:
|
|||||||
void on_editAccountBtn_clicked();
|
void on_editAccountBtn_clicked();
|
||||||
|
|
||||||
// This will be sent when the "close" button is clicked.
|
// This will be sent when the "close" button is clicked.
|
||||||
void on_closedBtnBox_rejected();
|
void on_closeBtnBox_rejected();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::shared_ptr<MojangAccountList> m_accounts;
|
std::shared_ptr<MojangAccountList> m_accounts;
|
||||||
|
Loading…
Reference in New Issue
Block a user