Skip to content

Commit

Permalink
fix: linked folder icon
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 committed Jun 10, 2024
1 parent 6b0e77a commit 9f114fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/renderer/services/querysentence-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ export class QuerySentenceService {
data: T extends PaperSmartFilterType
? IPaperSmartFilterCollection
: ICategorizerCollection,
type: T
type: T,
linkedFolderName?: string
): DirectedGraph {
const graph = new DirectedGraph();

const linkedFolderName = this._preferenceService.get("pluginLinkedFolder");

for (const obj of data) {
const node = {};
node["_id"] = obj._id;
Expand Down Expand Up @@ -93,7 +92,8 @@ export class QuerySentenceService {
data: ICategorizerCollection | IPaperSmartFilterCollection,
type: CategorizerType | PaperSmartFilterType,
sortBy: string,
sortOrder: string
sortOrder: string,
linkedFolderName?: string
): ViewTreeNode {
if (data.length === 0) {
return {
Expand All @@ -108,7 +108,7 @@ export class QuerySentenceService {
};
}

const graph = this.parseDAG(data, type);
const graph = this.parseDAG(data, type, linkedFolderName);

let rootID: string | undefined;

Expand Down
3 changes: 2 additions & 1 deletion app/renderer/ui/sidebar-view/sidebar-library-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const foldersViewTree = computed(() => {
folders?.value || [],
CategorizerType.PaperFolder,
prefState.sidebarSortBy,
prefState.sidebarSortOrder
prefState.sidebarSortOrder,
prefState.pluginLinkedFolder
);
});
Expand Down

0 comments on commit 9f114fa

Please sign in to comment.