Skip to content

Commit

Permalink
Fix Install-Remove-Install Cycle for free plugins.
Browse files Browse the repository at this point in the history
W0lf forgot to check whether plugin is free or paid and classified it directly as paid leading to installation failure because paddle related files could not be found inside the plugin's zip.
  • Loading branch information
npyl committed Dec 24, 2019
1 parent 1c082a9 commit 35c3d72
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions MacForge/MacForge/Views/Bundle/MF_bundleView.m
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,17 @@ - (void)pluginFinder {
- (void)pluginDelete {
[PluginManager.sharedInstance pluginDelete:item];
[PluginManager.sharedInstance readPlugins:nil];
[self.bundleInstall setTitle:@"GET"];
[self.bundleInstall setAction:@selector(installOrPurchase)];

if ([[item objectForKey:@"payed"] boolValue]) {
self.bundleInstall.title = @"Verifying...";
[self verifyPurchased];
[self.bundleInstall setAction:@selector(installOrPurchase)];
} else {
[self.bundleInstall setEnabled:true];
self.bundleInstall.title = @"GET";
[self.bundleInstall setAction:@selector(pluginInstall)];
}

[self.bundleDelete setEnabled:false];
[self viewWillDraw];
}
Expand Down

0 comments on commit 35c3d72

Please sign in to comment.