mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-22 13:33:18 +02:00
remove unused in main window
This commit is contained in:
@@ -926,7 +926,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
||||
return;
|
||||
}
|
||||
File chosenFile = jfc.getSelectedFile();
|
||||
String chosenPath = null;
|
||||
String chosenPath;
|
||||
try {
|
||||
chosenPath = chosenFile.getCanonicalPath();
|
||||
} catch (Exception e) {
|
||||
@@ -945,7 +945,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
||||
return;
|
||||
}
|
||||
File chosenFile = jfc.getSelectedFile();
|
||||
String chosenPath = null;
|
||||
String chosenPath;
|
||||
try {
|
||||
chosenPath = chosenFile.getCanonicalPath();
|
||||
} catch (Exception e) {
|
||||
@@ -1273,7 +1273,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
||||
if (!urlString.startsWith("http")) {
|
||||
urlString = "http://" + urlString;
|
||||
}
|
||||
URL url = null;
|
||||
URL url;
|
||||
try {
|
||||
url = new URL(urlString);
|
||||
} catch (MalformedURLException e) {
|
||||
@@ -1557,10 +1557,6 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
||||
ripButton.doClick();
|
||||
}
|
||||
|
||||
public static void enableWindowPositioning() {
|
||||
Utils.setConfigBoolean("window.position", true);
|
||||
}
|
||||
|
||||
private static boolean hasWindowPositionBug() {
|
||||
String osName = System.getProperty("os.name");
|
||||
// Java on Windows has a bug where if we try to manually set the position of the
|
||||
|
Reference in New Issue
Block a user