Skip to content

Commit 3dccb2c

Browse files
committed
fix(preferences-window): Set application
If the preferences window doesn't have an application set, it won't be able to access application actions
1 parent 62902f5 commit 3dccb2c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ui/session/preferences_window.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ impl PreferencesWindow {
117117
pub(crate) fn new(parent_window: Option<&gtk::Window>, session: &ui::Session) -> Self {
118118
glib::Object::builder()
119119
.property("transient-for", parent_window)
120+
.property(
121+
"application",
122+
parent_window.and_then(gtk::Window::application),
123+
)
120124
.property("session", session)
121125
.build()
122126
}

0 commit comments

Comments
 (0)