MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / isInRecentlyOpenDocuments

Method isInRecentlyOpenDocuments

src/board/UBFeaturesController.cpp:547–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547bool UBFeaturesController::isInRecentlyOpenDocuments(QString documentFolderName)
548{
549 for(auto&& url : std::as_const(recentlyOpenDocuments))
550 {
551 QString localFile = url.toLocalFile();
552 if (localFile.endsWith(".rdf"))
553 {
554 if (localFile.section('/', -2, -2) == documentFolderName) //section before "/metadata.rdf" is documentFolderName
555 {
556 return true;
557 }
558 }
559 }
560 return false;
561}
562
563void UBFeaturesController::loadFavoriteList()
564{

Callers 2

setNewNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected