fixed #5001

上级 4c663e4a
......@@ -209,6 +209,6 @@ export class AppHotkeyProvider extends HotkeyProvider {
}
static getProfileHotkeyName (profile: PartialProfile<Profile>): string {
return profile.id!.replace(/\./g, '-')
return (profile.id ?? profile.name).replace(/\./g, '-')
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册