refactor(settings): remove the Updates page until an updater exists
This commit is contained in:
@@ -21,7 +21,6 @@ mod split;
|
||||
mod sync;
|
||||
mod tab;
|
||||
mod tab_group;
|
||||
mod update;
|
||||
mod url_text;
|
||||
|
||||
pub use appearance::{
|
||||
@@ -72,5 +71,4 @@ pub use tab::{
|
||||
ZOOM_PERCENT_STEP, parse_title_unread_count, validate_zoom_percent,
|
||||
};
|
||||
pub use tab_group::TabGroup;
|
||||
pub use update::UpdatePolicy;
|
||||
pub use url_text::UrlText;
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
|
||||
pub enum UpdatePolicy {
|
||||
#[default]
|
||||
Automatic,
|
||||
Manual,
|
||||
}
|
||||
|
||||
impl UpdatePolicy {
|
||||
pub const ALL: &[Self] = &[Self::Automatic, Self::Manual];
|
||||
|
||||
#[must_use]
|
||||
pub fn name(self) -> &'static str {
|
||||
match self {
|
||||
Self::Automatic => "Automatic",
|
||||
Self::Manual => "Manual",
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn detail(self) -> &'static str {
|
||||
match self {
|
||||
Self::Automatic => "Use release manifests as the automatic update source.",
|
||||
Self::Manual => "Keep release manifest checks user-initiated.",
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user