diff --git a/data/ui/components/playlist/edit.blp b/data/ui/components/playlist/edit.blp index ed50f1f3..9037ef74 100644 --- a/data/ui/components/playlist/edit.blp +++ b/data/ui/components/playlist/edit.blp @@ -1,11 +1,10 @@ using Gtk 4.0; using Adw 1; -template $EditPlaylistDialog : Adw.PreferencesWindow { - search-enabled: false; +template $EditPlaylistDialog : Adw.PreferencesDialog { title: _("Edit Playlist"); - default-width: 360; - default-height: 440; + //content-width: 360; + //content-height: 440; Adw.PreferencesPage { title: _("Edit Playlist"); diff --git a/src/components/playlist/edit.ts b/src/components/playlist/edit.ts index 00843bf7..1a561ca1 100644 --- a/src/components/playlist/edit.ts +++ b/src/components/playlist/edit.ts @@ -85,7 +85,7 @@ privacy_model.append( ), ); -export class EditPlaylistDialog extends Adw.PreferencesWindow { +export class EditPlaylistDialog extends Adw.PreferencesDialog { static { GObject.registerClass({ GTypeName: "EditPlaylistDialog", diff --git a/src/pages/playlist.ts b/src/pages/playlist.ts index 7f42fafc..721d194a 100644 --- a/src/pages/playlist.ts +++ b/src/pages/playlist.ts @@ -323,13 +323,13 @@ export class PlaylistPage extends Adw.Bin const edit_dialog = new EditPlaylistDialog(this.playlist); - edit_dialog.set_transient_for(this.get_root() as Gtk.Window); + //edit_dialog.set_transient_for(this.get_root() as Gtk.Window); edit_dialog.connect("saved", (_, values: ObjectContainer) => { this.update_values(values.object); }); - edit_dialog.present(); + edit_dialog.present(this.get_root() as Gtk.Window); } update_values(values: EditedValues) {