summaryrefslogtreecommitdiffstats
path: root/editor/export/editor_export.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/export/editor_export.cpp')
-rw-r--r--editor/export/editor_export.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/editor/export/editor_export.cpp b/editor/export/editor_export.cpp
index aeb4966169..2e34685d75 100644
--- a/editor/export/editor_export.cpp
+++ b/editor/export/editor_export.cpp
@@ -111,8 +111,13 @@ void EditorExport::save_presets() {
save_timer->start();
}
+void EditorExport::emit_presets_runnable_changed() {
+ emit_signal(_export_presets_runnable_updated);
+}
+
void EditorExport::_bind_methods() {
- ADD_SIGNAL(MethodInfo("export_presets_updated"));
+ ADD_SIGNAL(MethodInfo(_export_presets_updated));
+ ADD_SIGNAL(MethodInfo(_export_presets_runnable_updated));
}
void EditorExport::add_export_platform(const Ref<EditorExportPlatform> &p_platform) {
@@ -136,6 +141,7 @@ void EditorExport::add_export_preset(const Ref<EditorExportPreset> &p_preset, in
} else {
export_presets.insert(p_at_pos, p_preset);
}
+ emit_presets_runnable_changed();
}
int EditorExport::get_export_preset_count() const {
@@ -150,6 +156,7 @@ Ref<EditorExportPreset> EditorExport::get_export_preset(int p_idx) {
void EditorExport::remove_export_preset(int p_idx) {
export_presets.remove_at(p_idx);
save_presets();
+ emit_presets_runnable_changed();
}
void EditorExport::add_export_plugin(const Ref<EditorExportPlugin> &p_plugin) {
@@ -382,6 +389,10 @@ bool EditorExport::poll_export_platforms() {
return changed;
}
+void EditorExport::connect_presets_runnable_updated(const Callable &p_target) {
+ connect(_export_presets_runnable_updated, p_target);
+}
+
EditorExport::EditorExport() {
save_timer = memnew(Timer);
add_child(save_timer);
@@ -390,6 +401,7 @@ EditorExport::EditorExport() {
save_timer->connect("timeout", callable_mp(this, &EditorExport::_save));
_export_presets_updated = "export_presets_updated";
+ _export_presets_runnable_updated = "export_presets_runnable_updated";
singleton = this;
set_process(true);