diff --git a/assets/web_script.js b/assets/web_script.js index 9d75536..cf3c888 100644 --- a/assets/web_script.js +++ b/assets/web_script.js @@ -319,7 +319,7 @@ function RSIAutoLogin(email, pwd) { }); } -function SCTShowToast(message, duration) { +function SCTShowToast(message) { let m = document.createElement('div'); m.innerHTML = message; m.style.cssText = "font-family:siyuan;max-width:60%;min-width: 150px;padding:0 14px;height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: rgba(0, 0, 0,.7);font-size: 16px;"; diff --git a/lib/common/conf.dart b/lib/common/conf.dart index 70c252e..5e62401 100644 --- a/lib/common/conf.dart +++ b/lib/common/conf.dart @@ -94,12 +94,12 @@ class AppConf { ); await windowManager.show(); await Window.initialize(); + await Window.hideWindowControls(); if (windowsDeviceInfo.productName.contains("Windows 11")) { await Window.setEffect( effect: WindowEffect.acrylic, ); } - await Window.hideWindowControls(); }); await _checkUpdate(); AnalyticsApi.touch("launch");