Browse Source

Move the .update check back to the top

(Somewhat issue 1333 related)


git-svn-id: http://svn.dmdirc.com/trunk@4198 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
e51714f464
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/com/dmdirc/plugins/PluginInfo.java

+ 5
- 5
src/com/dmdirc/plugins/PluginInfo.java View File

@@ -77,6 +77,11 @@ public class PluginInfo implements Comparable<PluginInfo> {
77 77
 		this.filename = filename;
78 78
 		ResourceManager res;
79 79
 
80
+		// Check for updates.
81
+		if (new File(getFullFilename()+".update").exists() && new File(getFullFilename()).delete()) {
82
+			new File(getFullFilename()+".update").renameTo(new File(getFullFilename()));
83
+		}
84
+
80 85
 		if (!load) {
81 86
 			// Load the metaData if available.
82 87
 			metaData = new Properties();
@@ -92,11 +97,6 @@ public class PluginInfo implements Comparable<PluginInfo> {
92 97
 			return;
93 98
 		}
94 99
 
95
-		// Check for updates.
96
-		if (new File(getFullFilename()+".update").exists() && new File(getFullFilename()).delete()) {
97
-			new File(getFullFilename()+".update").renameTo(new File(getFullFilename()));
98
-		}
99
-		
100 100
 		try {
101 101
 			res = getResourceManager();
102 102
 		} catch (IOException ioe) {

Loading…
Cancel
Save