mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-28 16:25:33 +00:00
can load & reload programs
This commit is contained in:
@@ -3,6 +3,7 @@ use crate::{
|
||||
};
|
||||
use alloc::{str::FromStr, string::String, vec::Vec};
|
||||
use embassy_sync::{blocking_mutex::raw::CriticalSectionRawMutex, mutex::Mutex};
|
||||
use embassy_time::Timer;
|
||||
use embedded_graphics::{
|
||||
Drawable,
|
||||
mono_font::{MonoTextStyle, ascii::FONT_9X15},
|
||||
@@ -55,6 +56,8 @@ pub async fn ui_handler() {
|
||||
clear_selection().await;
|
||||
draw_selection().await;
|
||||
}
|
||||
|
||||
Timer::after_millis(50).await;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,6 +149,10 @@ impl SelectionList {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_changed(&mut self, changed: bool) {
|
||||
self.changed = changed
|
||||
}
|
||||
|
||||
pub fn update_selections(&mut self, selections: Vec<FileName>) {
|
||||
self.selections = selections;
|
||||
self.changed = true;
|
||||
|
||||
Reference in New Issue
Block a user