更新若干功能

This commit is contained in:
李琦
2026-08-14 17:54:06 +08:00
parent 89bc265f68
commit ce00c9d193
18 changed files with 779 additions and 158 deletions

View File

@@ -126,7 +126,7 @@ func (a *App) GetSyncStatus() (SyncStatus, error) {
// ---------- 远端连接 ----------
// openRemote 建立 MySQL 连接。应用不执行任何建表/迁移DDL
// openRemote 建立 MySQL 连接。应用与前端不执行任何建表/迁移DDL
// 数据库与数据表须提前用仓库根目录的 init.sql 初始化。
func (a *App) openRemote(ctx context.Context) (*sql.DB, error) {
c := a.syncConfig()
@@ -575,6 +575,7 @@ func (a *App) emitSyncDone() {
if st, e := a.GetSyncStatus(); e == nil {
a.emit("sync:done", st)
}
a.RefreshTrayStatus()
}
func (a *App) syncText(k string) string {