GTG

The expanding state should be remembered accross refresh

Bug #313030 reported by Lionel Dricot
4
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Bertrand Rousseau

Bug Description

Because expand_all for each refresh can be annoying

Related branches

Changed in gtg:
importance: Undecided → Low
Changed in gtg:
status: New → Confirmed
Changed in gtg:
milestone: none → 0.1rc
Changed in gtg:
importance: Low → High
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Fixed in rev. 125. Bertrand, could you save the self.expanded_tid variable (a list of string) in the conf file ?

Changed in gtg:
assignee: nobody → ploum
status: Confirmed → Fix Released
Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote :

Reopening since expanded state is not preserved when you select a different tag:

1) Select a tag
2) Expand a task
3) Select another tag
4) Return to the first tag

The expanded task is collapsed

I guess we have to store the list of expanded tasks, and restore it at each refresh. We could store this information in the configuration file, as you ask.

I'm taking charge of this bug since I will implement the storage the expanded state in the config file as well (see bug #322120).

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote :

More precisely:

1) Select a tag
2) Expand a task
3) Select another tag (which the expanded task doesn't have)
4) Return to the first tag

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote :

Re-fixed

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote : Re: [Bug 313030] Re: The expanding state should be remembered accross refresh

> I guess we have to store the list of expanded tasks, and restore it at
> each refresh. We could store this information in the configuration file,
> as you ask.

That's what we are doing now. This list is created at every refresh. If
you switch to another tag, it will list the currently expanded tasks. Of
course, the tasks who don't have the tag are not listed because they are
not in the treeview so not considered as expanded.

My proposition :
- Keep the current "restore_expand" mechanism which is good.
- Don't build the expanded list at every refresh but instead add/remove
task from it when the signal expanded_toggle is received.

>
> I'm taking charge of this bug since I will implement the storage the
> expanded state in the config file as well (see bug #322120).
>
> --
> The expanding state should be remembered accross refresh
> https://bugs.launchpad.net/bugs/313030
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote : Re: [Bug 313030] Re: The expanding state should be remembered accross refresh

On Wed, Jan 28, 2009 at 9:35 AM, Lionel Dricot <email address hidden> wrote:
>
>> I guess we have to store the list of expanded tasks, and restore it at
>> each refresh. We could store this information in the configuration file,
>> as you ask.
>
> That's what we are doing now. This list is created at every refresh. If
> you switch to another tag, it will list the currently expanded tasks. Of
> course, the tasks who don't have the tag are not listed because they are
> not in the treeview so not considered as expanded.
>
> My proposition :
> - Keep the current "restore_expand" mechanism which is good.
> - Don't build the expanded list at every refresh but instead add/remove
> task from it when the signal expanded_toggle is received.

The problem is that the expand_toggle signal is sent from every row
when you use expand_all()

>>
>> I'm taking charge of this bug since I will implement the storage the
>> expanded state in the config file as well (see bug #322120).
>>
>> --
>> The expanding state should be remembered accross refresh
>> https://bugs.launchpad.net/bugs/313030
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>
> --
> The expanding state should be remembered accross refresh
> https://bugs.launchpad.net/bugs/313030
> You received this bug notification because you are a member of Gtg
> developers, which is the registrant for gtg.
>
> Status in Getting Things Gnome!: Fix Released
>
> Bug description:
> Because expand_all for each refresh can be annoying
>

--
Bertrand Rousseau
Place communale 1, 1450 Chastre, Belgium
e-mail : <email address hidden>
tel : +32 485 96 69 86

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote : Re: [Bug 313030] Re: The expanding state should be remembered accross refresh

> The problem is that the expand_toggle signal is sent from every row
> when you use expand_all()

Damn !

If there was an easy way to iterate through the row, we wouldn't need this
expand_all.

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote :

Reopening since actually now we don't store correctly the collapsed rows

Changed in gtg:
assignee: ploum → bertrand-rousseau
status: Fix Released → In Progress
Changed in gtg:
status: In Progress → 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.