更新若干功能
This commit is contained in:
3
sync.go
3
sync.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user