Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tabs Start Wide #3

@gilliginsisland

Description

@gilliginsisland

I have a bad but quick fix to the issue of tabs not getting smaller immediately on start.

in the load method, put this

for (id BrowserWindow in [NSApplication.sharedApplication windows])
{
    if (![BrowserWindow isKindOfClass:NSClassFromString(@"BrowserWindow")]) return;
    NSArray *orderedTabViewItems = [BrowserWindow performSelector:@selector(orderedTabViewItems)];
    if ([orderedTabViewItems count] < 1) return;
    [[orderedTabViewItems[0] performSelector:@selector(tabBarView)] performSelector:@selector(refreshButtons)];
}

it will loop over all the windows in the browser and find the container of the tabs. it will then force them to refresh right when simbl is loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions