Skip to content

Commit 43f9432

Browse files
committed
make latest version auto select.
1 parent 6736e09 commit 43f9432

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ impl Velvet {
9393

9494
fn update(&mut self, message: Message) -> Task<Message> {
9595
match message {
96-
Message::Populate(value) => self.version_list = value,
96+
Message::Populate(value) => {
97+
self.version = Some(value[0].clone());
98+
self.version_list = value;
99+
}
97100
Message::Update(value) => self.version = Some(value),
98101
Message::Snapshot(value) => {
99102
self.snapshot = value;

0 commit comments

Comments
 (0)