|
@@ -13041,9 +13041,10 @@ export struct LocalMusic {
|
|
|
.visibility(more.id === 26 ? Visibility.Visible : Visibility.None)
|
|
.visibility(more.id === 26 ? Visibility.Visible : Visibility.None)
|
|
|
.selected(this.spectrumModeIndex)
|
|
.selected(this.spectrumModeIndex)
|
|
|
.value(['柱状', '波形', '圆形', '粒子', '脉冲', '镜像柱', '影子柱', '轨道线', '点阵', '星爆'][this.spectrumModeIndex])
|
|
.value(['柱状', '波形', '圆形', '粒子', '脉冲', '镜像柱', '影子柱', '轨道线', '点阵', '星爆'][this.spectrumModeIndex])
|
|
|
- .onSelect(async (index: number, _text?: string) => {
|
|
|
|
|
|
|
+ .onSelect((index: number, _text?: string) => {
|
|
|
this.spectrumModeIndex = index;
|
|
this.spectrumModeIndex = index;
|
|
|
- PreferencesUtil.put('spectrumModeIndex', this.spectrumModeIndex);
|
|
|
|
|
|
|
+ // 使用同步方法保存,确保立即生效
|
|
|
|
|
+ PreferencesUtil.putSync('spectrumModeIndex', this.spectrumModeIndex);
|
|
|
AppStorage.setOrCreate<number>('spectrumMode', this.spectrumModeIndex);
|
|
AppStorage.setOrCreate<number>('spectrumMode', this.spectrumModeIndex);
|
|
|
const modeNames = ['柱状', '波形', '圆形', '粒子', '脉冲', '镜像柱', '影子柱', '轨道线', '点阵', '星爆'];
|
|
const modeNames = ['柱状', '波形', '圆形', '粒子', '脉冲', '镜像柱', '影子柱', '轨道线', '点阵', '星爆'];
|
|
|
Logger.info('heanup-LocalMusic', '频谱特效已切换为: ' + modeNames[index]);
|
|
Logger.info('heanup-LocalMusic', '频谱特效已切换为: ' + modeNames[index]);
|