make accounts sortable

This commit is contained in:
B. Petersen
2024-10-21 17:01:17 +02:00
parent f2e600dc55
commit 63d0437d2d
4 changed files with 63 additions and 1 deletions

View File

@@ -272,6 +272,9 @@ pub struct InnerContext {
creation_time: tools::Time,
/// Accounts with higher numbers are returned at beginning of get_all().
pub(crate) sort_number: u32,
/// The text of the last error logged and emitted as an event.
/// If the ui wants to display an error after a failure,
/// `last_error` should be used to avoid races with the event thread.
@@ -427,6 +430,7 @@ impl Context {
let inner = InnerContext {
id,
sort_number: 0,
blobdir,
running_state: RwLock::new(Default::default()),
sql: Sql::new(dbfile),