Skip to content

Commit

Permalink
Fix suggestions repaint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Sep 1, 2022
1 parent 0cbbb02 commit df1c69f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,13 @@ void PlugDataAudioProcessor::initialiseFilesystem()
library.createDirectory();
}

/*
else if(library.getChildFile("Deken").isDirectory() &&
#if JUCE_WINDOWS
!std::filesystem::is_symlink(library.getChildFile("Deken").getFullPathName().toStdString())
#else
!library.getChildFile("Deken").isSymbolicLink()
#endif
){
#if !JUCE_WINDOWS
// This may not work on Windows, Windows users REALLY need to thrash their PlugData folder
else if(library.getChildFile("Deken").isDirectory() && !library.getChildFile("Deken").isSymbolicLink()) {
library.moveFileTo(library_backup);
library.createDirectory();
} */
}
#endif

deken.createDirectory();

Expand Down
2 changes: 2 additions & 0 deletions Source/Utility/SuggestionComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ class SuggestionComponent : public Component
} else if (port->getViewPositionY() + port->getMaximumVisibleHeight() < but->getY() + but->getHeight()) {
port->setViewPosition(0, but->getY() - (but->getHeight() * 4));
}

repaint();
}

TextEditor* openedEditor = nullptr;
Expand Down

0 comments on commit df1c69f

Please sign in to comment.