void PAGE_ShowBindingDialog(u8 update) { if (update && ! dialog) return; binding_string_cb(NULL, NULL); u32 crc = Crc(tempstring, strlen(tempstring)); if (dialog && crc != dialogcrc) { GUI_Redraw(dialog); } else if(! dialog) { dialog = GUI_CreateDialog(&gui->dialog, DIALOG2_X, DIALOG2_Y, DIALOG2_WIDTH, DIALOG2_HEIGHT, NULL, NULL, binding_ok_cb, dtOk, tempstring); } dialogcrc = crc; }
void PAGE_ShowBindingDialog(u8 update) { if (update && ! dialog) return; binding_string_cb(NULL, NULL); u32 crc = Crc(tempstring, strlen(tempstring)); if (dialog && crc != dialogcrc) { GUI_Redraw(dialog); } else if(! dialog) { const char *title = Model.name[0] ? Model.name : _tr("Binding"); dialog = GUI_CreateDialog(&gui->dialog, 10 + DLG_XOFFSET, 42 + DLG_YOFFSET, 300, 188, title, binding_string_cb, binding_ok_cb, dtOk, NULL); } dialogcrc = crc; }