Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

MailSpring源码分析--向导窗口

查看数: 1667 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2020-10-9 16:26

正文摘要:

本帖最后由 Qter 于 2020-10-12 15:16 编辑 app\internal_packages\onboarding\lib\onboarding-actions.ts export const finishAndAddAccount = Reflux.createAction('finishAndAddAccount'); finishAndAdd ...

回复

Qter 发表于 2020-10-12 15:14:18
然后会打开主窗口中
  1. app\internal_packages\onboarding\lib\page-initial-preferences.tsx
  2. _onFinished = () => {
  3. require('electron').ipcRenderer.send('account-setup-successful');
  4. }

  5. app\src\browser\application.ts

  6.     ipcMain.on('account-setup-successful', () => {
  7.       this.windowManager.ensureWindow(WindowManager.MAIN_WINDOW);
  8.       const onboarding = this.windowManager.get(WindowManager.ONBOARDING_WINDOW);
  9.       if (onboarding) {
  10.         onboarding.close();
  11.       }
  12.     });
复制代码

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-11-26 12:27 , Processed in 0.063274 second(s), 23 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表