Open Plugin -- Make first run show at least one item to user
Open plugin needs the context menu to allow the user to add an item on the first run there are no items and therefore nothing to pop the context menu from Change-Id: I7a78454ff29b20c7b60db44349dd23d500ed887c
This commit is contained in:
parent
5317953f4a
commit
f906df017d
1 changed files with 9 additions and 6 deletions
|
@ -742,12 +742,6 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
exit = true;
|
exit = true;
|
||||||
|
|
||||||
items = rb->lseek(fd_dat, 0, SEEK_END) / op_entry_sz;
|
items = rb->lseek(fd_dat, 0, SEEK_END) / op_entry_sz;
|
||||||
if (items == 0 && !parameter)
|
|
||||||
{
|
|
||||||
rb->plugin_open(rb->plugin_get_current_filename(), NULL);
|
|
||||||
rb->close(fd_dat);
|
|
||||||
return PLUGIN_GOTO_PLUGIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (parameter)
|
if (parameter)
|
||||||
{
|
{
|
||||||
|
@ -798,6 +792,15 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
}
|
}
|
||||||
}/* OP_EXT */
|
}/* OP_EXT */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (items == 0 && !exit)
|
||||||
|
{
|
||||||
|
rb->plugin_open(rb->plugin_get_current_filename(), NULL);
|
||||||
|
rb->close(fd_dat);
|
||||||
|
return PLUGIN_GOTO_PLUGIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!exit)
|
if (!exit)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue