fixed blinking history on selecting a history item

This commit is contained in:
Wolfgang R 2014-10-22 13:02:27 +02:00
parent 77d3f08981
commit 428bb1f46a

View file

@ -72,6 +72,7 @@ let RandomWallpaperEntry = new Lang.Class({
// reset it if needed
this.menu.actor.connect('hide', function() {
wallpaperController.setWallpaper(_this.history[0]);
_this.setHistoryList();
});
},
@ -94,7 +95,6 @@ let RandomWallpaperEntry = new Lang.Class({
tmp.actor.connect('button-press-event', function(actor) {
wallpaperController.setWallpaper(historyid);
_this.setHistoryList();
});
this.historySection.addMenuItem(tmp);