summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugingui/plugingui.cc9
-rw-r--r--vst/Makefile.mingw32.in1
2 files changed, 8 insertions, 2 deletions
diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc
index b235af3..f345660 100644
--- a/plugingui/plugingui.cc
+++ b/plugingui/plugingui.cc
@@ -94,11 +94,13 @@ static void selectKitFile(void *ptr, std::string filename)
PluginGUI *gui = (PluginGUI*)ptr;
gui->lineedit->setText(filename);
+
fb->hide();
std::string drumkit = gui->lineedit->text();
gui->config->lastkit = drumkit;
+ gui->config->save();
gui->progress->setProgress(0);
gui->progress->setState(GUI::ProgressBar::blue);
@@ -132,6 +134,7 @@ static void selectMapFile(void *ptr, std::string filename)
std::string midimap = gui->lineedit2->text();
gui->config->lastmidimap = midimap;
+ gui->config->save();
LoadMidimapMessage *msg = new LoadMidimapMessage();
msg->midimapfile = midimap;
@@ -334,7 +337,8 @@ void PluginGUI::init()
lineedit = new GUI::LineEdit(window);
lineedit->move(XOFFSET, y);
lineedit->resize(243, 29);
-
+ lineedit->setReadOnly(true);
+
GUI::Button *btn_brw = new GUI::Button(window);
btn_brw->setText("Browse...");
btn_brw->move(266, y - 6 + 4);
@@ -364,7 +368,8 @@ void PluginGUI::init()
lineedit2 = new GUI::LineEdit(window);
lineedit2->move(XOFFSET, y);
lineedit2->resize(243, 29);
-
+ lineedit2->setReadOnly(true);
+
GUI::Button *btn_brw = new GUI::Button(window);
btn_brw->setText("Browse...");
btn_brw->move(266, y - 6 + 4);
diff --git a/vst/Makefile.mingw32.in b/vst/Makefile.mingw32.in
index 76154f9..f8aab4d 100644
--- a/vst/Makefile.mingw32.in
+++ b/vst/Makefile.mingw32.in
@@ -39,6 +39,7 @@ GUI_SRC = \
@top_srcdir@/plugingui/nativewindow_x11.cc \
@top_srcdir@/plugingui/nativewindow_win32.cc \
@top_srcdir@/plugingui/plugingui.cc \
+ @top_srcdir@/plugingui/pluginconfig.cc \
@top_srcdir@/plugingui/label.cc \
@top_srcdir@/plugingui/eventhandler.cc \
@top_srcdir@/plugingui/font.cc \