mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
OSC: mark session dirty if setup changes
This commit is contained in:
parent
1a6a72b57a
commit
3e3791b72e
3 changed files with 11 additions and 1 deletions
|
|
@ -660,6 +660,12 @@ OSC::get_unix_server_url()
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
OSC::gui_changed ()
|
||||||
|
{
|
||||||
|
session->set_dirty();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
OSC::listen_to_route (boost::shared_ptr<Stripable> strip, lo_address addr)
|
OSC::listen_to_route (boost::shared_ptr<Stripable> strip, lo_address addr)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,7 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest>
|
||||||
int get_defaultfeedback() { return default_feedback; }
|
int get_defaultfeedback() { return default_feedback; }
|
||||||
void set_defaultfeedback (int fb) { default_feedback = fb; }
|
void set_defaultfeedback (int fb) { default_feedback = fb; }
|
||||||
void clear_devices ();
|
void clear_devices ();
|
||||||
|
void gui_changed ();
|
||||||
std::string get_remote_port () { return remote_port; }
|
std::string get_remote_port () { return remote_port; }
|
||||||
void set_remote_port (std::string pt) { remote_port = pt; }
|
void set_remote_port (std::string pt) { remote_port = pt; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -567,7 +567,8 @@ OSC_GUI::factory_reset ()
|
||||||
portmode_combo.set_active (0);
|
portmode_combo.set_active (0);
|
||||||
cp.set_remote_port ("8000");
|
cp.set_remote_port ("8000");
|
||||||
port_entry.set_value (8000);
|
port_entry.set_value (8000);
|
||||||
cp.clear_devices();
|
cp.clear_devices ();
|
||||||
|
cp.gui_changed ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -807,6 +808,7 @@ OSC_GUI::save_user ()
|
||||||
error << string_compose ("MCP profile not saved to %1", fullpath) << endmsg;
|
error << string_compose ("MCP profile not saved to %1", fullpath) << endmsg;
|
||||||
}
|
}
|
||||||
preset_combo.set_active (2);
|
preset_combo.set_active (2);
|
||||||
|
cp.gui_changed();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -880,6 +882,7 @@ OSC_GUI::load_preset (std::string preset)
|
||||||
cp.set_gainmode (atoi (prop->value().c_str()));
|
cp.set_gainmode (atoi (prop->value().c_str()));
|
||||||
gainmode_combo.set_active (atoi (prop->value().c_str()));
|
gainmode_combo.set_active (atoi (prop->value().c_str()));
|
||||||
}
|
}
|
||||||
|
cp.gui_changed();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue