Browse Source

session: Fix constructor for new session

glib::Boxed panics if not provided with construct_only.
fractal-6
Kévin Commaille 2 years ago
parent
commit
6557a8b62a
No known key found for this signature in database
GPG Key ID: 29A48C1F03620416
  1. 4
      src/session/model/session_settings.rs

4
src/session/model/session_settings.rs

@ -108,6 +108,10 @@ impl SessionSettings {
pub fn new(session_id: &str) -> Self {
glib::Object::builder()
.property("session-id", session_id)
.property(
"stored-settings",
&BoxedStoredSessionSettings(StoredSessionSettings::default()),
)
.build()
}

Loading…
Cancel
Save