mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(electron): tab title/icon default state (#7731)
This commit is contained in:
@@ -31,6 +31,8 @@ export class Workbench extends Entity {
|
||||
return this.framework.createEntity(View, {
|
||||
id: meta.id,
|
||||
defaultLocation: meta.path,
|
||||
icon: meta.icon,
|
||||
title: meta.title,
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
@@ -3,11 +3,15 @@ import type { GlobalStateService } from '@toeverything/infra';
|
||||
import { createIdentifier, Service } from '@toeverything/infra';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
import type { ViewIconName } from '../constants';
|
||||
|
||||
export type WorkbenchDefaultState = {
|
||||
basename: string;
|
||||
views: {
|
||||
id: string;
|
||||
path?: { pathname?: string; hash?: string; search?: string };
|
||||
icon?: ViewIconName;
|
||||
title?: string;
|
||||
}[];
|
||||
activeViewIndex: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user