File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ public void update(Addon addon) {
60
60
}
61
61
62
62
public String getVersion () {
63
+ return version ;
64
+ }
65
+
66
+ public String getInstalled () {
63
67
findInstalled ();
64
68
return installed ;
65
69
}
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ public void run() {
78
78
System .out .println (e .getMessage ());
79
79
}
80
80
}
81
- System .out .println ("Updating..." );
82
81
javax .json .JsonArray parse = request .getAddonList ();
83
82
if (parse != null ) {
84
83
parseJsonResult (parse );
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ protected void processTags() {
49
49
}
50
50
51
51
public void run () {
52
- while (true ) {
52
+ return ;
53
+ /*while (true) {
53
54
//while (System.currentTimeMillis() < lastRefreshed + duration * 60000) {
54
55
try {
55
56
Thread.sleep(1000);
@@ -59,6 +60,6 @@ public void run() {
59
60
//}
60
61
processAddons();
61
62
processTags();
62
- }
63
+ }*/
63
64
}
64
65
}
Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ protected void changeRefreshTo(int dur) {
587
587
protected void updateList () {
588
588
for (int position = 0 ; position < AddonList .getRowCount (); position ++) {
589
589
if (addons .get (AddonList .convertRowIndexToModel (position )).getName () == activeAddon .getName ()) {
590
- AddonList .setValueAt (activeAddon .getVersion (), position , 2 );
590
+ AddonList .setValueAt (activeAddon .getInstalled (), position , 2 );
591
591
}
592
592
}
593
593
}
You can’t perform that action at this time.
0 commit comments