Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
XUANXUQAQ committed Aug 5, 2020
1 parent 50408bf commit 9b0ba67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/FileEngine/frames/SettingsFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,7 @@ private void addButtonRemoveDesktopListener() {
int isConfirmed = JOptionPane.showConfirmDialog(frame, TranslateUtil.getInstance().getTranslation("Whether to remove and backup all files on the desktop," +
"they will be in the program's Files folder, which may take a few minutes"));
if (isConfirmed == 0) {
CachedThreadPool.getInstance().executeTask(() -> {
new MoveDesktopFiles().start();
});
CachedThreadPool.getInstance().executeTask(() -> new MoveDesktopFiles().start());
}
});
}
Expand Down Expand Up @@ -1309,6 +1307,7 @@ private void translate() {
labelUserName.setText(TranslateUtil.getInstance().getTranslation("User name"));
labelPassword.setText(TranslateUtil.getInstance().getTranslation("Password"));
labelProxyTip.setText(TranslateUtil.getInstance().getTranslation("If you need a proxy to access the Internet, You can add a proxy here."));
frame.setTitle(TranslateUtil.getInstance().getTranslation("Settings"));
}

public static void setMainExit(boolean b) {
Expand Down

0 comments on commit 9b0ba67

Please sign in to comment.