chore: assign todos (#7297)

This commit is contained in:
forehalo
2024-06-21 07:54:14 +00:00
parent e085b927f6
commit 7b3673ae82
121 changed files with 137 additions and 157 deletions

View File

@@ -29,7 +29,7 @@ export const allHandlers = {
};
export const registerHandlers = () => {
// TODO: listen to namespace instead of individual event types
// TODO(@Peng): listen to namespace instead of individual event types
ipcMain.setMaxListeners(100);
for (const [namespace, namespaceHandlers] of Object.entries(allHandlers)) {
for (const [key, handler] of Object.entries(namespaceHandlers)) {

View File

@@ -111,7 +111,7 @@ async function createWindow(additionalArguments: string[]) {
});
browserWindow.on('close', e => {
// TODO: gracefully close the app, for example, ask user to save unsaved changes
// TODO(@Peng): gracefully close the app, for example, ask user to save unsaved changes
e.preventDefault();
if (!isMacOS()) {
closeAllWindows();

View File

@@ -79,7 +79,7 @@ async function createOnboardingWindow(additionalArguments: string[]) {
// forcing zoom factor to 1 to avoid onboarding display issues
browserWindow.webContents.setZoomFactor(1);
fullscreenAndCenter(browserWindow);
// TODO: add a timeout to avoid flickering, window is ready, but dom is not ready
// TODO(@catsjuice): add a timeout to avoid flickering, window is ready, but dom is not ready
setTimeout(() => {
browserWindow.show();
}, 300);