Build tagged releases on Gitea (#79)
This commit is contained in:
@@ -60,7 +60,7 @@ async fn pick_file(
|
||||
pub async fn pick_folder(initial: Option<PathBuf>) -> Result<Option<PathBuf>, String> {
|
||||
use ashpd::{
|
||||
PortalError,
|
||||
desktop::{file_chooser::SelectedFiles, request::ResponseError},
|
||||
desktop::{ResponseError, file_chooser::SelectedFiles},
|
||||
};
|
||||
|
||||
let mut request = SelectedFiles::open_file()
|
||||
@@ -93,7 +93,7 @@ pub async fn pick_folder(initial: Option<PathBuf>) -> Result<Option<PathBuf>, St
|
||||
pub async fn pick_qr_image() -> Result<Option<SecretBytes>, String> {
|
||||
use ashpd::{
|
||||
PortalError,
|
||||
desktop::{file_chooser::SelectedFiles, request::ResponseError},
|
||||
desktop::{ResponseError, file_chooser::SelectedFiles},
|
||||
};
|
||||
|
||||
let response = SelectedFiles::open_file()
|
||||
@@ -134,7 +134,7 @@ pub async fn pick_key_file() -> Result<Option<PathBuf>, String> {
|
||||
async fn pick_file(title: &str, accept_label: &str) -> Result<Option<PathBuf>, String> {
|
||||
use ashpd::{
|
||||
PortalError,
|
||||
desktop::{file_chooser::SelectedFiles, request::ResponseError},
|
||||
desktop::{ResponseError, file_chooser::SelectedFiles},
|
||||
};
|
||||
|
||||
let response = SelectedFiles::open_file()
|
||||
|
||||
@@ -3569,13 +3569,18 @@ impl App {
|
||||
}
|
||||
|
||||
fn subscription(&self) -> Subscription<Message> {
|
||||
let mut subscriptions = vec![
|
||||
let subscriptions = vec![
|
||||
time::every(Duration::from_secs(1)).map(|_| Message::Tick),
|
||||
event::listen_with(|event, _status, _window| event_message(&event)),
|
||||
window::close_requests().map(Message::RequestClose),
|
||||
];
|
||||
#[cfg(target_os = "macos")]
|
||||
subscriptions.push(time::every(Duration::from_millis(50)).map(|_| Message::PollNativeMenu));
|
||||
let subscriptions = {
|
||||
let mut subscriptions = subscriptions;
|
||||
subscriptions
|
||||
.push(time::every(Duration::from_millis(50)).map(|_| Message::PollNativeMenu));
|
||||
subscriptions
|
||||
};
|
||||
Subscription::batch(subscriptions)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user