mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-27 12:46:22 +01:00
Add confirmation dialog for forgetting accounts
This commit is contained in:
parent
3effa7d674
commit
2ec8180d2a
@ -111,7 +111,12 @@ public class AccountSelectDialog extends JDialog {
|
|||||||
|
|
||||||
removeSelected.addActionListener(ev -> {
|
removeSelected.addActionListener(ev -> {
|
||||||
if (accountList.getSelectedValue() != null) {
|
if (accountList.getSelectedValue() != null) {
|
||||||
launcher.getAccounts().remove(accountList.getSelectedValue());
|
boolean confirmed = SwingHelper.confirmDialog(this, SharedLocale.tr("accounts.confirmForget"),
|
||||||
|
SharedLocale.tr("accounts.confirmForgetTitle"));
|
||||||
|
|
||||||
|
if (confirmed) {
|
||||||
|
launcher.getAccounts().remove(accountList.getSelectedValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -93,6 +93,8 @@ accounts.refreshingStatus=Refreshing login session...
|
|||||||
accounts.addMojang=Add Mojang account
|
accounts.addMojang=Add Mojang account
|
||||||
accounts.addMicrosoft=Add Microsoft account
|
accounts.addMicrosoft=Add Microsoft account
|
||||||
accounts.removeSelected=Forget selected account
|
accounts.removeSelected=Forget selected account
|
||||||
|
accounts.confirmForgetTitle=Forget account
|
||||||
|
accounts.confirmForget=Are you sure that you want to forget that account?
|
||||||
|
|
||||||
login.login=Login...
|
login.login=Login...
|
||||||
login.recoverAccount=Forgot your login?
|
login.recoverAccount=Forgot your login?
|
||||||
|
Loading…
Reference in New Issue
Block a user