[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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user