app/settings: Don't use strip_option (#137)
Since these don't default to `None`, and the fields aren't public, using `strip_option` makes it impossible to change them to `None`.
This commit is contained in:
parent
a223b60a0c
commit
54d47a1b38
1 changed files with 1 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ pub struct Settings {
|
|||
pub(crate) default_font: Font,
|
||||
|
||||
/// Name of the icon theme to search by default.
|
||||
#[setters(strip_option, into)]
|
||||
#[setters(into)]
|
||||
pub(crate) default_icon_theme: Option<String>,
|
||||
|
||||
/// Default size of fonts.
|
||||
|
|
@ -34,7 +34,6 @@ pub struct Settings {
|
|||
|
||||
/// Whether the window should be resizable or not.
|
||||
/// and the size of the window border which can be dragged for a resize
|
||||
#[setters(strip_option)]
|
||||
pub(crate) resizable: Option<f64>,
|
||||
|
||||
/// Scale factor to use by default.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue