mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:39:07 +08:00
Fix package upgrade
CURA-5296 The removal of already installed package is already handled by the package manager in the package upgrade. Removing the package before the download starts will make the package to be removed before the new content is available and its license gets approved by the user.
This commit is contained in:
parent
43fcb183ae
commit
57ca41291a
@ -250,8 +250,6 @@ class Toolbox(QObject, Extension):
|
||||
if remote_package:
|
||||
download_url = remote_package["download_url"]
|
||||
Logger.log("d", "Updating package [%s]..." % plugin_id)
|
||||
if self._package_manager.isUserInstalledPackage(plugin_id):
|
||||
self.uninstall(plugin_id)
|
||||
self.startDownload(download_url)
|
||||
else:
|
||||
Logger.log("e", "Could not update package [%s] because there is no remote package info available.", plugin_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user