Implement desktop menus and shortcuts

This commit is contained in:
2026-08-10 16:52:51 +02:00
parent f6e74cbb1d
commit c301d9a3df
8 changed files with 1376 additions and 67 deletions

View File

@@ -3,7 +3,9 @@
use std::{error::Error, fmt, path::Path};
use crate::{
authentication::{NativeAuthenticationHandle, NativeAuthenticationSession},
authentication::{
AuthenticationTimeout, NativeAuthenticationHandle, NativeAuthenticationSession,
},
config::Config,
crypto::{KeyInfo, KeyStore, SecretProvider},
document::{DocumentError, EntryDocument, EntryDocumentService},
@@ -111,6 +113,10 @@ impl DesktopStorage {
self.config.clipboard_timeout()
}
pub fn authentication_timeout(&self) -> AuthenticationTimeout {
self.config.authentication_timeout()
}
pub fn tree(&self) -> Result<TreeModel, DesktopError> {
let repository = self.repository()?;
let keys = self.keys()?;