Fix incorrect if-clause.

merge-requests/218/head
Jens Lody 7 years ago
parent e499431115
commit 851d68083c
  1. 2
      src/prefs.js

@ -421,7 +421,7 @@ const WeatherPrefsWidget = new GObject.Class({
showSearchMenu: function() {
this.searchMenu.show_all();
if (versionAtLeast('3.22', Config.PACKAGE_VERSION)) {
if (typeof this.searchMenu.popup_at_widget === "function") {
this.searchMenu.popup_at_widget(this.searchName, Gdk.Gravity.SOUTH_WEST, Gdk.Gravity.NORTH_WEST, null);
}
else

Loading…
Cancel
Save