Skip to content

Commit 540c074

Browse files
committed
gtk: correctly initialize state variable in playlist_details
1 parent 06051c8 commit 540c074

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gtk/src/ui/window.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ impl RbApplicationWindow {
986986
let artist_results = search.imp().artist_results.get();
987987
let track_results = search.imp().track_results.get();
988988
let playlists = window.imp().playlists.get();
989+
let playlists_details = window.imp().playlist_details.get();
989990

990991
songs.imp().likes_page.replace(Some(likes.clone()));
991992
track_results.imp().likes_page.replace(Some(likes.clone()));
@@ -1007,6 +1008,7 @@ impl RbApplicationWindow {
10071008
albums.imp().state.set(Some(&state));
10081009
search.imp().state.set(Some(&state));
10091010
playlists.imp().state.set(Some(&state));
1011+
playlist_details.imp().state.set(Some(&state));
10101012

10111013
artist_results.imp().search_mode.set(true);
10121014
album_results.imp().search_mode.set(true);
@@ -1135,7 +1137,7 @@ impl RbApplicationWindow {
11351137
.imp()
11361138
.playlist_details
11371139
.replace(Some(window.imp().playlist_details.get().clone()));
1138-
playlists.imp().main_stack.replace(Some(main_stack.clone()));
1140+
playlists.imp().main_stack.replace(Some(main_stack.clone());
11391141

11401142
album_results.imp().set_main_stack(main_stack.clone());
11411143
album_results.imp().set_library_page(library_page.clone());

0 commit comments

Comments
 (0)