MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / removeNotebooksFromFolder

Method removeNotebooksFromFolder

source/core/NotebookLibrary.cpp:340–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void NotebookLibrary::removeNotebooksFromFolder(const QStringList& bundlePaths)
341{
342 if (bundlePaths.isEmpty()) {
343 return;
344 }
345
346 bool anyChanged = false;
347
348 for (const QString& path : bundlePaths) {
349 NotebookInfo* nb = findNotebook(path);
350 if (nb && !nb->starredFolder.isEmpty()) {
351 nb->starredFolder.clear(); // Move to unfiled
352 anyChanged = true;
353 }
354 }
355
356 if (anyChanged) {
357 markDirty();
358 }
359}
360
361void NotebookLibrary::createStarredFolder(const QString& name)
362{

Callers 1

showOverflowMenuMethod · 0.80

Calls 2

isEmptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected