Skip to content

Commit

Permalink
Only show alertview when search is non-null (elementary#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored and Jeremy Wootten committed May 9, 2018
1 parent 9dbf2cf commit da7397a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/ListView/ListView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public class Noise.ListView : ContentView, Gtk.Box {
}

// If nothing will be shown, display the "no media found" message.
if (showing.size < 1) {
if (showing.size < 1 && search != "") {
App.main_window.view_stack.show_alert ();
}
}
Expand Down

0 comments on commit da7397a

Please sign in to comment.