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