Home Download Buy Blog Forum Support

Load events

Load events

Postby emartel on Wed Aug 07, 2013 12:22 am

Hi guys,

Hopefully I'm just blind and I can't see something obvious from the API, but is there a way to be notified when a project / folder gets opened? The callbacks seem to be very view centric.

Posts: 23
Joined: Thu Feb 23, 2012 8:59 pm
Location: Montreal, Canada

Re: Load events

Postby NeilJ on Sun Oct 20, 2013 5:34 pm

Nothing for project which is what I am looking for to be added to the API. Unfortunately I haven't seen any official word if they plan on doing this. :cry:
Posts: 3
Joined: Sat May 18, 2013 4:56 pm

Re: Load events

Postby lunixbochs on Sat Oct 26, 2013 9:00 am


Redirect "current file has changed" events (on_new, on_load, on_activated - make sure to use the async ones) to a function to see if window.project_file_name() has changed. You should remember the project filename separately for each window.id().

You can also check window.folders(), but you might need to do this on a timer. Checking asynchronously every 50-250ms shouldn't hurt performance and will still seem pretty responsive. You should also see if adding a folder triggers a settings on_change listener anywhere.
Posts: 92
Joined: Fri Oct 08, 2010 10:18 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 6 guests