[Rigo] ApplicationViewController: exit view when required

Exit view when Application shown is from installed packages repo
and it's being scheduled for removal
This commit is contained in:
Fabio Erculiani
2012-04-14 11:06:45 +02:00
parent d0d3a72d16
commit 49563c8206

View File

@@ -820,8 +820,16 @@ class ApplicationViewController(GObject.Object):
"""
Remove the given Application.
"""
inst_app = app.get_installed()
self.emit("application-request-action",
app.get_installed(), AppActions.REMOVE)
inst_app, AppActions.REMOVE)
if app.get_details().pkg == inst_app.get_details().pkg:
# on remove, we should return back to browser view
# if the Application shown is being removed
self._avc.emit(
"view-want-change",
RigoViewStates.STATIC_VIEW_STATE,
None)
def _on_app_install(self, widget, app):
"""