main: remote_trigger on open-count changes

This commit is contained in:
Thomas Schoebel-Theuer 2017-12-13 00:05:24 +01:00 committed by Thomas Schoebel-Theuer
parent c8788a28cb
commit 495c42c9d9
1 changed files with 6 additions and 0 deletions

View File

@ -580,6 +580,7 @@ struct mars_rotate {
int relevant_serial; int relevant_serial;
int replay_code; int replay_code;
int avoid_count; int avoid_count;
int old_open_count;
bool has_symlinks; bool has_symlinks;
bool is_attached; bool is_attached;
bool res_shutdown; bool res_shutdown;
@ -4177,6 +4178,11 @@ done:
rot->if_brick && !rot->if_brick->power.led_off; rot->if_brick && !rot->if_brick->power.led_off;
_show_primary(rot, parent); _show_primary(rot, parent);
if (open_count != rot->old_open_count) {
rot->old_open_count = open_count;
mars_remote_trigger();
}
err: err:
return status; return status;
} }