|
@@ -6,8 +6,6 @@ |
|
|
|
|
|
|
|
|
namespace rack { |
|
|
namespace rack { |
|
|
|
|
|
|
|
|
static const char *filters = "JSON Patch\0*.json\0"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct NewItem : MenuItem { |
|
|
struct NewItem : MenuItem { |
|
|
void onAction() { |
|
|
void onAction() { |
|
@@ -17,7 +15,7 @@ struct NewItem : MenuItem { |
|
|
|
|
|
|
|
|
struct SaveItem : MenuItem { |
|
|
struct SaveItem : MenuItem { |
|
|
void onAction() { |
|
|
void onAction() { |
|
|
char *path = osdialog_file(OSDIALOG_SAVE, "./patches", "Untitled.json", NULL); |
|
|
|
|
|
|
|
|
char *path = osdialog_file(OSDIALOG_SAVE, "./patches", "Untitled.vcv", NULL); |
|
|
if (path) { |
|
|
if (path) { |
|
|
gRackWidget->savePatch(path); |
|
|
gRackWidget->savePatch(path); |
|
|
free(path); |
|
|
free(path); |
|
|