Skip to content

Commit

Permalink
mintinstall-remove-app.py: Fix a potential error if attempting to
Browse files Browse the repository at this point in the history
remove a not-installed app.

Fix a deprecation warning also.
  • Loading branch information
mtwebster committed Jul 2, 2024
1 parent 7a74549 commit 4878c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/linuxmint/mintinstall/mintinstall-remove-app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def on_installer_ready(self):
self.on_installer_info_ready, None,
self.on_uninstall_complete, self.on_uninstall_progress, use_mainloop=True)
else:
print("Package '%s' is not installed" % self.pkginfo.name)
print("Package '%s' is not installed" % pkg_name)
self.on_uninstall_complete(None)

def on_installer_info_ready(self, task):
Expand All @@ -60,7 +60,7 @@ def on_installer_info_ready(self, task):
def on_uninstall_progress(self, pkginfo, progress, estimating, status_text=None):
if self.progress_window is None:
self.progress_window = Gtk.Dialog()
self.progress_window.set_default_geometry(400, -1)
self.progress_window.set_default_size(400, -1)
self.progress_window.set_title(_("Removing"))
self.progress_window.connect("delete-event", self.dialog_delete_event)

Expand Down

0 comments on commit 4878c00

Please sign in to comment.