Skip to content

Commit

Permalink
player: 修正翻译和 macOS 构建
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-xmh committed Oct 29, 2024
1 parent cb1dcce commit faa90a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion packages/player/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"noResults": "无结果"
}
},
"<0>音频解码信息</0>": "<0>音频解码信息</0>",
"common": {
"dialog": {
"close": "关闭",
Expand Down
12 changes: 2 additions & 10 deletions packages/player/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ fn recreate_window(app: &AppHandle) {
#[cfg(not(debug_assertions))]
let url = tauri::WebviewUrl::App("index.html".into());
let win: WebviewWindowBuilder<'_, _, _> = WebviewWindowBuilder::new(app, "main", url);
#[cfg(target_os = "windows")]
let win = win.transparent(true);
#[cfg(not(desktop))]
let win = win;

Expand All @@ -151,16 +153,6 @@ fn recreate_window(app: &AppHandle) {
effects: vec![Effect::Tabbed, Effect::Mica],
..Default::default()
})
.transparent({
#[cfg(target_os = "windows")]
{
true
}
#[cfg(not(target_os = "windows"))]
{
false
}
})
.title({
#[cfg(target_os = "macos")]
{
Expand Down
4 changes: 1 addition & 3 deletions packages/player/src/components/AudioQualityDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export const AudioQualityDialog: FC = () => {
>
<Dialog.Content width="fit-content">
<Dialog.Title>
<Trans>
<Trans i18nKey="amll.audioQuality.title">音频解码信息</Trans>
</Trans>
<Trans i18nKey="amll.audioQuality.title">音频解码信息</Trans>
</Dialog.Title>
<Separator size="4" my="3" />
<DataList.Root>
Expand Down

0 comments on commit faa90a1

Please sign in to comment.