@ -81,8 +81,6 @@ public class StartupPageWindow extends JFrame {
private JPanel body ;
private JPanel body ;
private StartupLoadingPanel loadingPanel ;
public StartupPageWindow ( StartupPageModel pageModel ) {
public StartupPageWindow ( StartupPageModel pageModel ) {
patchUIAction ( pageModel ) ;
patchUIAction ( pageModel ) ;
@ -102,9 +100,6 @@ public class StartupPageWindow extends JFrame {
setFullScreen ( ) ;
setFullScreen ( ) ;
// 必须放最后
// 见 https://work.fineres.com/browse/REPORT-85293
loadingPanel = new StartupLoadingPanel ( this ) ;
}
}
private void initCenter ( StartupPageModel pageModel ) {
private void initCenter ( StartupPageModel pageModel ) {
@ -232,9 +227,12 @@ public class StartupPageWindow extends JFrame {
private void enterWorkspace ( Runnable action ) {
private void enterWorkspace ( Runnable action ) {
UIUtil . invokeAndWaitIfNeeded ( ( ) - > {
UIUtil . invokeAndWaitIfNeeded ( ( ) - > {
// 必须直接初始化
// 见 https://work.fineres.com/browse/REPORT-85293
StartupLoadingPanel loadingPanel = new StartupLoadingPanel ( this ) ;
loadingPanel . show ( ) ;
loadingPanel . show ( ) ;
setEnabled ( false ) ;
setEnabled ( false ) ;
} ) ;
SwingWorker < Void , Void > task = new SwingWorker < Void , Void > ( ) {
SwingWorker < Void , Void > task = new SwingWorker < Void , Void > ( ) {
@Override
@Override
@ -271,6 +269,7 @@ public class StartupPageWindow extends JFrame {
}
}
} ;
} ;
task . execute ( ) ;
task . execute ( ) ;
} ) ;
}
}
private JPanel generateRecentOpenPanel ( StartupPageModel pageModel ) {
private JPanel generateRecentOpenPanel ( StartupPageModel pageModel ) {