mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-06 14:00:52 -08:00
fix: zoom menu item not updated
This commit is contained in:
parent
e38a08fa82
commit
b99f99ae95
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ export class View implements IViewService {
|
|||
}
|
||||
|
||||
private async registerMenu(): Promise<void> {
|
||||
const hasWorkspaces = (await this.workspaceService.countWorkspaces()) > 0;
|
||||
const hasWorkspaces = async () => (await this.workspaceService.countWorkspaces()) > 0;
|
||||
const sidebar = await this.preferenceService.get('sidebar');
|
||||
const titleBar = await this.preferenceService.get('titleBar');
|
||||
// electron type forget that click can be async function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue