fire: exit out of the plugin with both PLA_EXIT and PLA_CANCEL
Change-Id: I553fc5d02b7ee7004d791ba40cbd655f98c88f19
This commit is contained in:
parent
3a7a46d1c0
commit
2cf75bf008
1 changed files with 3 additions and 1 deletions
|
@ -55,6 +55,7 @@ const struct button_mapping* plugin_contexts[]= {
|
|||
};
|
||||
|
||||
#define FIRE_QUIT PLA_CANCEL
|
||||
#define FIRE_QUIT2 PLA_EXIT
|
||||
#define FIRE_SWITCH_FLAMES_TYPE PLA_LEFT
|
||||
#define FIRE_SWITCH_FLAMES_MOVING PLA_RIGHT
|
||||
|
||||
|
@ -330,6 +331,7 @@ int main(void)
|
|||
|
||||
switch(action){
|
||||
case FIRE_QUIT:
|
||||
case FIRE_QUIT2:
|
||||
cleanup(NULL);
|
||||
return PLUGIN_OK;
|
||||
|
||||
|
|
Loading…
Reference in a new issue