chore(touchbar): address self-review

This commit is contained in:
Elian Doran 2025-04-13 23:04:06 +03:00
parent de99759d08
commit 83e7e82252
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@ import type NoteTreeWidget from "../widgets/note_tree.js";
import type { default as NoteContext, GetTextEditorCallback } from "./note_context.js"; import type { default as NoteContext, GetTextEditorCallback } from "./note_context.js";
import type TypeWidget from "../widgets/type_widgets/type_widget.js"; import type TypeWidget from "../widgets/type_widgets/type_widget.js";
import type EditableTextTypeWidget from "../widgets/type_widgets/editable_text.js"; import type EditableTextTypeWidget from "../widgets/type_widgets/editable_text.js";
import type { NativeImage } from "electron"; import type { NativeImage, TouchBar } from "electron";
interface Layout { interface Layout {
getRootWidget: (appContext: AppContext) => RootWidget; getRootWidget: (appContext: AppContext) => RootWidget;
@ -270,7 +270,7 @@ export type CommandMappings = {
geoMapCreateChildNote: CommandData; geoMapCreateChildNote: CommandData;
buildTouchBar: CommandData & { buildTouchBar: CommandData & {
TouchBar: typeof import("electron").TouchBar; TouchBar: typeof TouchBar;
buildIcon(name: string): NativeImage; buildIcon(name: string): NativeImage;
}; };
refreshTouchBar: CommandData; refreshTouchBar: CommandData;

View File

@ -1,4 +1,3 @@
import { app } from "electron";
import type { CommandListenerData, EventData } from "../../components/app_context.js"; import type { CommandListenerData, EventData } from "../../components/app_context.js";
import type FNote from "../../entities/fnote.js"; import type FNote from "../../entities/fnote.js";
import { t } from "../../services/i18n.js"; import { t } from "../../services/i18n.js";