refactor: make the single-instance feature additive
This commit is contained in:
parent
001fd744c5
commit
57f4abb8a0
5 changed files with 53 additions and 77 deletions
|
|
@ -62,9 +62,6 @@ pub struct Settings {
|
|||
|
||||
/// Whether the application should exit when there are no open windows
|
||||
pub(crate) exit_on_close: bool,
|
||||
|
||||
/// Only allow a single instance of the application to run
|
||||
pub single_instance: bool,
|
||||
}
|
||||
|
||||
impl Settings {
|
||||
|
|
@ -100,7 +97,6 @@ impl Default for Settings {
|
|||
theme: crate::theme::system_preference(),
|
||||
transparent: false,
|
||||
exit_on_close: true,
|
||||
single_instance: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue