Skip to content

Commit 3ae08a4

Browse files
committed
fixing version numbers after update
1 parent 6fe3ff4 commit 3ae08a4

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/Data/Addon.java

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ public void update(Addon addon) {
6060
}
6161

6262
public String getVersion() {
63+
return version;
64+
}
65+
66+
public String getInstalled() {
6367
findInstalled();
6468
return installed;
6569
}

src/Data/AddonList.java

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public void run() {
7878
System.out.println(e.getMessage());
7979
}
8080
}
81-
System.out.println("Updating...");
8281
javax.json.JsonArray parse = request.getAddonList();
8382
if (parse != null) {
8483
parseJsonResult(parse);

src/Data/TagList.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ protected void processTags() {
4949
}
5050

5151
public void run() {
52-
while (true) {
52+
return;
53+
/*while (true) {
5354
//while (System.currentTimeMillis() < lastRefreshed + duration * 60000) {
5455
try {
5556
Thread.sleep(1000);
@@ -59,6 +60,6 @@ public void run() {
5960
//}
6061
processAddons();
6162
processTags();
62-
}
63+
}*/
6364
}
6465
}

src/Gui/Wrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ protected void changeRefreshTo(int dur) {
587587
protected void updateList() {
588588
for (int position = 0; position < AddonList.getRowCount(); position++) {
589589
if (addons.get(AddonList.convertRowIndexToModel(position)).getName() == activeAddon.getName()) {
590-
AddonList.setValueAt(activeAddon.getVersion(), position, 2);
590+
AddonList.setValueAt(activeAddon.getInstalled(), position, 2);
591591
}
592592
}
593593
}

0 commit comments

Comments
 (0)