Skip to content

Commit

Permalink
feat: merge 0.22.4 (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Jan 16, 2025
2 parents 10ce8de + a59600d commit 4dcc415
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/updateInfos.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[
{
"version": "0.22.4",
"descriptions": [
"ソング:トークエディタを開かないと保存できない問題を修正"
],
"contributors": ["sigprogramming"]
},
{
"version": "0.22.3",
"descriptions": ["キャラクター「ぞん子」を追加"],
Expand Down
6 changes: 6 additions & 0 deletions src/store/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,12 @@ export const audioStore = createPartialStore<AudioStoreTypes>({

DEFAULT_PROJECT_FILE_BASE_NAME: {
getter: (state) => {
// NOTE: 起動時にソングエディタが開かれた場合、トークの初期化が行われずAudioCellが作成されない
// TODO: ソングエディタが開かれてい場合はこの関数を呼ばないようにし、warningを出す
if (state.audioKeys.length === 0) {
return DEFAULT_PROJECT_NAME;
}

const headItemText = state.audioItems[state.audioKeys[0]].text;

const tailItemText =
Expand Down

0 comments on commit 4dcc415

Please sign in to comment.