Skip to content

Commit

Permalink
Instruments: Clarify that the "set new name" option in the plugin pre…
Browse files Browse the repository at this point in the history
…set list only sends a request to the plugin to rename current preset, the plugin doesn"t necessarily always grant that request. #1429
  • Loading branch information
kmatheussen committed Jan 28, 2024
1 parent d07ad4d commit 87b6ca5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Qt/Qt_plugin_widget_callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,10 @@ public slots:
printf("I'm here, actually\n");

if (num == num_programs+1) {
const char *new_name = GFX_GetString(NULL, NULL, "new name: ", true);
ReqType reqtype=GFX_OpenReq(NULL,33,5,"Ask plugin to rename current preset. Note that the pluging might not support this.");
const char *new_name = GFX_GetString(NULL, reqtype, "New name: ", true);
GFX_CloseReq(NULL,reqtype);

if (new_name != NULL){
type->set_program_name(plugin, type->get_current_program(plugin), new_name);
update_widget();
Expand Down

0 comments on commit 87b6ca5

Please sign in to comment.