Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mod/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -3054,6 +3054,11 @@ def snapshot_save(self):
name = self.pedalboard_snapshots[idx]['name']
snapshot = self.snapshot_make(name)
self.pedalboard_snapshots[idx] = snapshot

# Write snapshots to disk immediately so external tools can detect the change
if self.pedalboard_path:
self.save_state_snapshots(self.pedalboard_path)

return True

def snapshot_saveas(self, name):
Expand Down
3 changes: 3 additions & 0 deletions mod/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,9 @@ def get(self):

yield gen.Task(SESSION.host.hmi_report_ss_name_if_current, idx)

# Send WebSocket message to notify clients (e.g., pistomp) of the new snapshot
SESSION.host.msg_callback("pedal_snapshot %d %s" % (idx, title))

self.write({
'ok': idx is not None,
'id': idx,
Expand Down