GTG

plugins activation should be instantly applied

Bug #475877 reported by Lionel Dricot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Unassigned

Bug Description

When you enable/disable a plugin, it should be applied instantly without the need to close the window.

This should be applied to the task browser and to every open tasks.

Currently, if you open a task then enable the Tomboy plugin, closing the task will result of a crash because of that.

Related branches

Changed in gtg:
importance: Undecided → High
milestone: none → 0.2
status: New → Confirmed
Revision history for this message
Luca Invernizzi (invernizzi) wrote :

I agree. I fixed the problem you mentioned of tomboy plugin in lp:~gtg-user/gtg/tomboy-quickfix

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Thanks a lot Luca.

Now, the plugins instantantly apply. The last remaining thing to solve this bug is to refresh opened task editors.

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

I don't understand why the main window is refreshed and not the editors. Is there a difference in the way they are handled?

Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Fixed with rev. 366

This introduced a change in the plugin API and a refacorization on how plugins work. Now, on deactivate, eache plugin should also clean the task editor. This has been done for all the plugins currently in Trunk.

It should also be noted that plugins should follow more closely PEP8 for importa
nt rules (like declaring all the global variables in the constructor)

4 new functions are now availables in the plugin API :

is_editor
is_browser
remove_item_from_task_toolbar
remove_widget_from_taskeditor

Each window (browser or editor) has now its own PluginAPI object.

Changed in gtg:
status: Confirmed → Fix Committed
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.