Skip to content

Commit

Permalink
- fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Nov 3, 2024
1 parent d0a9d71 commit 821e22b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6a72add15636d86ff04214643711399abbba6e87
d0a9d71f5e94f7c7a68e4f88755e3e1351f1200e
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "6a72add15636d86ff04214643711399abbba6e87"
#define PREVIOUS_HISE_COMMIT "d0a9d71f5e94f7c7a68e4f88755e3e1351f1200e"
6 changes: 4 additions & 2 deletions hi_core/hi_components/markdown_components/MarkdownPreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static bool areMajorWebsitesAvailable()
return false;
}

#if USE_BACKEND
void DocUpdater::SnippetCreator::createSnippetDatabase()
{
showStatusMessage("Create Snippet database");
Expand Down Expand Up @@ -322,6 +323,7 @@ void DocUpdater::SnippetCreator::createSnippetDatabase()
showStatusMessage("Can't find snippet directory");
}
}
#endif

DocUpdater::DocUpdater(MarkdownDatabaseHolder& holder_, bool fastMode_, bool allowEdit) :
MarkdownContentProcessor(holder_),
Expand Down Expand Up @@ -700,10 +702,9 @@ void DocUpdater::createLocalHtmlFiles()
DatabaseCrawler::createHtmlFilesInHtmlFolder(htmlDir, getHolder(), this, &getProgressCounter());
}



void DocUpdater::createSnippetDatabase()
{
#if USE_BACKEND
SnippetCreator sc(getHolder(), GET_BACKEND_ROOT_WINDOW(this), getCurrentThread());

sc.logger = [this](const String& message)
Expand All @@ -712,6 +713,7 @@ void DocUpdater::createSnippetDatabase()
};

sc.createSnippetDatabase();
#endif
}

void DocUpdater::downloadAndTestFile(const String& targetFileName)
Expand Down
2 changes: 2 additions & 0 deletions hi_core/hi_components/markdown_components/MarkdownPreview.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class DocUpdater : public DialogWindowWithBackgroundThread,
{
public:

#if USE_BACKEND
struct SnippetCreator
{
SnippetCreator(MarkdownDatabaseHolder& holder_, BackendRootWindow* rootWindow, Thread* t):
Expand All @@ -93,6 +94,7 @@ class DocUpdater : public DialogWindowWithBackgroundThread,
MarkdownDatabaseHolder& holder;
Component* rootWindow;
};
#endif

enum CacheURLType
{
Expand Down

0 comments on commit 821e22b

Please sign in to comment.