From df1c69f20822fdaefa2388533d48d588a6cd5479 Mon Sep 17 00:00:00 2001 From: Timothy Schoen <44585538+timothyschoen@users.noreply.github.com> Date: Fri, 2 Sep 2022 01:09:23 +0200 Subject: [PATCH] Fix suggestions repaint issue --- Source/PluginProcessor.cpp | 15 +++++---------- Source/Utility/SuggestionComponent.h | 2 ++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 31e8de88e..bd93dcc09 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -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(); diff --git a/Source/Utility/SuggestionComponent.h b/Source/Utility/SuggestionComponent.h index fabb77043..93f18c9f0 100644 --- a/Source/Utility/SuggestionComponent.h +++ b/Source/Utility/SuggestionComponent.h @@ -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;