diff options
-rw-r--r-- | cocoa/NetsurfApp.m | 2 | ||||
-rw-r--r-- | cocoa/Tree.m | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/cocoa/NetsurfApp.m b/cocoa/NetsurfApp.m index 9d8ba4878..2b23b2107 100644 --- a/cocoa/NetsurfApp.m +++ b/cocoa/NetsurfApp.m @@ -75,8 +75,6 @@ urldb_load( [[defaults objectForKey: kURLsFileOption] UTF8String] ); urldb_load_cookies( option_cookie_file ); - tree_set_icon_dir( strdup( [[[NSBundle mainBundle] pathForResource: @"Icons" ofType: @""] UTF8String] ) ); - cocoa_update_scale_factor(); } diff --git a/cocoa/Tree.m b/cocoa/Tree.m index b0f5c7c0a..005b1aefe 100644 --- a/cocoa/Tree.m +++ b/cocoa/Tree.m @@ -78,6 +78,14 @@ static const struct treeview_table cocoa_tree_callbacks = { tree_set_redraw( tree, newRedrawing ); } + ++ (void) initialize; +{ + if (self == [Tree class]) { + tree_set_icon_dir( strdup( [[[NSBundle mainBundle] pathForResource: @"Icons" ofType: @""] UTF8String] ) ); + } +} + //MARK: - //MARK: Callbacks |