refactor: make the single-instance feature additive

This commit is contained in:
Ashley Wulber 2023-11-21 15:18:39 -05:00 committed by Michael Murphy
parent 001fd744c5
commit 57f4abb8a0
5 changed files with 53 additions and 77 deletions

View file

@ -63,7 +63,8 @@ pub struct Core {
#[cfg(feature = "applet")]
pub applet: crate::applet::Context,
pub single_instance: bool,
#[cfg(feature = "single-instance")]
pub(crate) single_instance: bool,
}
impl Default for Core {
@ -106,6 +107,7 @@ impl Default for Core {
},
#[cfg(feature = "applet")]
applet: crate::applet::Context::default(),
#[cfg(feature = "single-instance")]
single_instance: false,
}
}