mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-07 17:11:50 +00:00
fix(core): new config migration to recover profile without ID
This commit is contained in:
@@ -351,6 +351,14 @@ export class ConfigService {
|
|||||||
delete window.localStorage.lastSerialConnection
|
delete window.localStorage.lastSerialConnection
|
||||||
config.version = 3
|
config.version = 3
|
||||||
}
|
}
|
||||||
|
if (config.version < 4) {
|
||||||
|
for (const p of config.profiles ?? []) {
|
||||||
|
if (!p.id) {
|
||||||
|
p.id = `${p.type}:custom:${uuidv4()}`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
config.version = 4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async maybeDecryptConfig (store) {
|
private async maybeDecryptConfig (store) {
|
||||||
|
Reference in New Issue
Block a user