fix: conditional features and tests

This commit is contained in:
Michael Aaron Murphy 2025-03-05 17:56:19 +01:00
parent 5a7e766c08
commit e9b87cb1df
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
8 changed files with 19 additions and 25 deletions

View file

@ -7,7 +7,6 @@ use apply::Apply;
use cosmic::app::{Core, Settings, Task};
use cosmic::dialog::file_chooser::{self, FileFilter};
use cosmic::iced_core::Length;
use cosmic::surface_message::{MessageWrapper, SurfaceMessage};
use cosmic::widget::button;
use cosmic::{executor, iced, ApplicationExt, Element};
use std::sync::Arc;
@ -35,22 +34,7 @@ pub enum Message {
OpenError(Arc<file_chooser::Error>),
OpenFile,
Selected(Url),
Surface(SurfaceMessage),
}
impl From<Message> for MessageWrapper<Message> {
fn from(value: Message) -> Self {
match value {
Message::Surface(s) => MessageWrapper::Surface(s),
m => MessageWrapper::Message(m),
}
}
}
impl From<SurfaceMessage> for Message {
fn from(value: SurfaceMessage) -> Self {
Message::Surface(value)
}
Surface(cosmic::surface::Action),
}
/// The [`App`] stores application-specific state.
@ -202,7 +186,7 @@ impl cosmic::Application for App {
Message::CloseError => {
self.error_status = None;
}
Message::Surface(surface_message) => {}
Message::Surface(surface) => {}
}
Task::none()