-
Notifications
You must be signed in to change notification settings - Fork 0
#2409 の変更提案プルリクエスト #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,6 +144,21 @@ const isAcceptRetrieveTelemetryDialogOpenComputed = computed({ | |
}), | ||
}); | ||
|
||
// 初期設定ダイアログ | ||
const isInitialSettingsDialogOpenComputed = computed({ | ||
get: () => | ||
!store.state.isAcceptTermsDialogOpen && | ||
!store.state.isCharacterOrderDialogOpen && | ||
!store.state.isDefaultStyleSelectDialogOpen && | ||
!store.state.isAcceptRetrieveTelemetryDialogOpen && | ||
store.state.isInitialSettingsDialogOpen, | ||
Comment on lines
+150
to
+154
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 利用規約ダイアログ、キャラクター並び替えダイアログなどを設定し終わってからこのダイアログが開かれるようにしてます。 |
||
set: (val) => { | ||
void store.actions.SET_DIALOG_OPEN({ | ||
isInitialSettingsDialogOpen: val, | ||
}); | ||
}, | ||
}); | ||
|
||
// エディタのアップデート確認ダイアログ | ||
const canOpenNotificationDialog = computed(() => { | ||
return ( | ||
|
@@ -172,18 +187,4 @@ const isImportSongProjectDialogOpenComputed = computed({ | |
isImportSongProjectDialogOpen: val, | ||
}), | ||
}); | ||
|
||
// 初期設定ダイアログ | ||
const isSelectedEditorType = computed(() => store.state.openedEditor); | ||
console.log(isSelectedEditorType.value); | ||
const isInitialSettingsDialogOpenComputed = computed({ | ||
get: () => store.state.isInitialSettingsDialogOpen, | ||
set: (val) => { | ||
if (isSelectedEditorType.value) { | ||
void store.actions.SET_DIALOG_OPEN({ | ||
isInitialSettingsDialogOpen: val, | ||
}); | ||
} | ||
}, | ||
}); | ||
</script> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -377,7 +377,7 @@ export type ConfirmedTips = { | |
|
||
// ルート直下にある雑多な設定値 | ||
export const rootMiscSettingSchema = z.object({ | ||
openedEditor: z.enum(["talk", "song"]).default("talk"), | ||
openedEditor: z.enum(["talk", "song"]).optional(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
editorFont: z.enum(["default", "os"]).default("default"), | ||
showTextLineNumber: z.boolean().default(false), | ||
showAddAudioItemButton: z.boolean().default(true), | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここで
openedEditor
が設定されているかどうかを見て、isInitialSettingsDialogOpen
をtrueにしてます!App.vueが表示されている直後のタイミングだと必ず
state.openedEditor
はundefined
になってるので、エンジンが起動した後にダイアログを開くかどうかを判定してます。利用規約ダイアログとかも開くかどうかここで判定しているので、同じ機構にしています。
(ちなみに、これは正直既存の実装がちょっと微妙なのですが、リファクタリングができていなくてそのままにって感じです。。。)