Don't notify view of an installed game for extends scripts

This commit is contained in:
Mathieu Comandon 2016-10-31 10:13:07 -07:00
parent b884d28507
commit f87291af73

View file

@ -445,6 +445,11 @@ class InstallerDialog(Gtk.Window):
self.connect('focus-in-event', self.on_window_focus)
def notify_install_success(self, game_id=None):
# Nothing to notify in case of extends scripts
if self.interpreter.extends:
return
game_id = game_id or self.interpreter.game_id
if self.parent:
self.parent.view.emit('game-installed', game_id)