File tree 1 file changed +9
-1
lines changed
app/src/cc/arduino/contributions/packages/ui
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,14 @@ public class ContributedPlatformReleases {
44
44
public final List <ContributedPlatform > releases ;
45
45
public final List <String > versions ;
46
46
public ContributedPlatform selected = null ;
47
+ public boolean deprecated ;
47
48
48
49
public ContributedPlatformReleases (ContributedPlatform platform ) {
49
50
packager = platform .getParentPackage ();
50
51
arch = platform .getArchitecture ();
51
52
releases = new LinkedList <>();
52
53
versions = new LinkedList <>();
54
+ deprecated = platform .isDeprecated ();
53
55
add (platform );
54
56
}
55
57
@@ -65,7 +67,9 @@ public void add(ContributedPlatform platform) {
65
67
if (version != null ) {
66
68
versions .add (version );
67
69
}
68
- selected = getLatest ();
70
+ ContributedPlatform latest = getLatest ();
71
+ selected = latest ;
72
+ deprecated = latest .isDeprecated ();
69
73
}
70
74
71
75
public ContributedPlatform getInstalled () {
@@ -89,6 +93,10 @@ public ContributedPlatform getSelected() {
89
93
return selected ;
90
94
}
91
95
96
+ public boolean isDeprecated () {
97
+ return deprecated ;
98
+ }
99
+
92
100
public void select (ContributedPlatform value ) {
93
101
for (ContributedPlatform plat : releases ) {
94
102
if (plat == value ) {
You can’t perform that action at this time.
0 commit comments