| @@ -66,8 +66,9 @@ private: | |||||
| { | { | ||||
| addAndMakeVisible (textbox); | addAndMakeVisible (textbox); | ||||
| textbox.getTextValue().referTo (value); | textbox.getTextValue().referTo (value); | ||||
| textbox.onReturnKey = [this] { updateEditorColour (textbox); }; | |||||
| textbox.onFocusLost = [this] { updateEditorColour (textbox); }; | |||||
| textbox.onReturnKey = [this] { updateEditorColour (textbox); }; | |||||
| textbox.onFocusLost = [this] { updateEditorColour (textbox); }; | |||||
| textbox.onTextChange = [this] { updateEditorColour (textbox); }; | |||||
| addAndMakeVisible (button); | addAndMakeVisible (button); | ||||
| button.onClick = [this] { browse(); }; | button.onClick = [this] { browse(); }; | ||||
| @@ -163,10 +164,10 @@ private: | |||||
| if (pathToCheck.contains ("${user.home}")) | if (pathToCheck.contains ("${user.home}")) | ||||
| pathToCheck = pathToCheck.replace ("${user.home}", File::getSpecialLocation (File::userHomeDirectory).getFullPathName()); | pathToCheck = pathToCheck.replace ("${user.home}", File::getSpecialLocation (File::userHomeDirectory).getFullPathName()); | ||||
| #if JUCE_WINDOWS | |||||
| #if JUCE_WINDOWS | |||||
| if (pathToCheck.startsWith ("~")) | if (pathToCheck.startsWith ("~")) | ||||
| pathToCheck = pathToCheck.replace ("~", File::getSpecialLocation (File::userHomeDirectory).getFullPathName()); | pathToCheck = pathToCheck.replace ("~", File::getSpecialLocation (File::userHomeDirectory).getFullPathName()); | ||||
| #endif | |||||
| #endif | |||||
| const auto currentFile = root.getChildFile (pathToCheck); | const auto currentFile = root.getChildFile (pathToCheck); | ||||