Adds some backup fixes
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
Fixes a potential NullPointerException Adds a check to make sure the backup location has enough available space Adds a message when calculating backup size to make it clear that the software is not frozen
This commit is contained in:
@ -64,11 +64,12 @@ public class BackupGUI implements ActionListener {
|
||||
* @param progressPercent <p>The new percent of the progress bar</p>
|
||||
*/
|
||||
public static void updateProgress(String infoText, int progressPercent) {
|
||||
if (progressTextArea == null || progressBar == null) {
|
||||
return;
|
||||
if (progressTextArea != null) {
|
||||
progressTextArea.setText(infoText);
|
||||
}
|
||||
if (progressBar != null) {
|
||||
progressBar.setValue(progressPercent);
|
||||
}
|
||||
progressTextArea.setText(infoText);
|
||||
progressBar.setValue(progressPercent);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user