Skip to content

v2.0.1 Bug Fix: Updater Directory Name

Choose a tag to compare

@Silver0034 Silver0034 released this 13 Feb 16:24
· 6 commits to main since this release

Bug Fix: Updater Directory Name

In this release, we've fixed a bug in the Updater class that was causing the downloaded directory to retain its original name when moved to the plugin directory.

Previously, when the Updater class downloaded a new version of the plugin, it would move the downloaded directory to the plugin directory but wouldn't change the directory's name. This could cause issues with plugin identification and activation.

The install_update method in the Updater class has been updated to correctly rename the downloaded directory to match the plugin name. Here's a brief overview of the changes:

  • Added a step to get the correct directory name from the plugin directory path.
  • Added a step to construct the correct path for the downloaded directory.
  • Updated the step that moves the downloaded directory to also rename it to the correct directory name.

This bug fix ensures that the updated plugin is correctly named and located in the plugin directory, improving the reliability of the update process.