Stop a null device crashing the journal
Merge pull request #365 from SAMdroid-apps/color-devices-crash

Stop a null device crashing the journal
Release 0.101.7
Fixes #2382, don't star journal entries from the object chooser
Flake8 fixes
Do not overflow transfer palette

Remove line breaks from description text in incoming files
and limit the label length with ellipse.

Fixes #1661

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Block KeepIcon callback in ExpandedEntry

When updating ExpandedEntry widgets to render a new journal
entry, it updates the state of the KeepIcon.

If the previous entry that was rendered in the ExpandedEntry
had a different value for keep, then it will trigger a toggle
event, since both uses the sake KeepIcon widget.

This callback is processed right away, so the other widgets still
contain previous journal entry values, and since this callback
triggers a metadata update, the old journal entry values are store
in the the new journal entry metadata, and get mixed.

Fixes #4770

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Implement filter by favorite in devices and Documents - Fixes #3813
Implement filter by activity in devices and Documents - Fixes #4523
Set keep values as strings

Setting it as int caused problems with up-coming patches
to support metadata editing for Documents folders and
external devices.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Cache get_documents_path value

As the xdg value will not change in the session,
we can cache the value and avoid executing xdg-user-dir
every time.
Assign the right mountpoint to files located in Documents directory
Don't remove the extension on external files - Fixes #2949

The file is renamed but the title lost the extension.
More information in the ticket. This change solves the problem
at save the metadata, but there are a remaining issue, the listview
is not correctly updated.
Save/Load metadata for files in subdirectories in Documents and devices

This was not implemented before. A directory is created as needed
inside .Sugar-Metadata, according to the file path.
Fix delete metadata of files in subdirectories
Notify the view about changes in external devices

Now modify the object title, or setting favorite works
in external devices, because the view is notified of the change.
Remember last ad-hoc used

Set _last_channel so it will re-connect to the last
ad-hoc network it was connected before, during the same
sugar session.

Unset _last_channel when the user explicitly disconnects
from the ad-hoc network, so it will forget about the last
network it was connected during the same sugar session.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Test commit