File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 31
31
<string >AD68E85B-441B-4301-B564-A45E4919A6AD </string >
32
32
<string >A16FF353-8441-459E-A50C-B071F53F51B7 </string >
33
33
<string >9F75337B-21B4-4ADC-B558-F9CADF7073A7 </string >
34
+ <string >E969541F-E6F9-4D25-8158-72DC3545A6C6 </string >
34
35
</array >
35
36
<key >XC4Compatible </key >
36
37
<true />
Original file line number Diff line number Diff line change @@ -37,14 +37,17 @@ - (id)initWithBundle:(NSBundle *)plugin {
37
37
38
38
if (self = [super init ]) {
39
39
self.bundle = plugin;
40
- [self generateMenu ];
41
40
_platform = @" osx" ;
42
- _addonsPath = [[NSUserDefaults standardUserDefaults ] stringForKey: kOpenFrameworksAddonsPath ];
43
- if (!_addonsPath) {
44
- [self setAddonsPath: [@" ~/openFrameworks/addons/" stringByExpandingTildeInPath ]];
45
- }
46
-
47
- [self scanAddons ];
41
+
42
+ [[NSOperationQueue mainQueue ] addOperationWithBlock: ^{
43
+ _addonsPath = [[NSUserDefaults standardUserDefaults ] stringForKey: kOpenFrameworksAddonsPath ];
44
+ if (!_addonsPath) {
45
+ [self setAddonsPath: [@" ~/openFrameworks/addons/" stringByExpandingTildeInPath ]];
46
+ }
47
+
48
+ [self scanAddons ];
49
+ [self generateMenu ];
50
+ }];
48
51
}
49
52
return self;
50
53
}
You can’t perform that action at this time.
0 commit comments