- Add "hideDockIcon" setting label and description to English locale, enabling users to remove VidBee from the macOS Dock and rely on the menu bar/tray icon. - Apply dock visibility changes when settings change, when settings are loaded, and after settings are reset by calling applyDockVisibility from the settings service. - Update About page to use about.description for share text and display content, replacing the removed tagline key usage. - Remove unused "tagline" entries from multiple locale files (en, fr, it, pt, ja, zh) to keep translations in sync with UI text changes. These changes add OS integration for hiding the dock icon and ensure UI copy is consistent and correctly internationalized.
17 lines
300 B
TypeScript
17 lines
300 B
TypeScript
import { app } from 'electron'
|
|
|
|
/**
|
|
* Apply Dock visibility preference on macOS.
|
|
*/
|
|
export function applyDockVisibility(hideDockIcon: boolean): void {
|
|
if (process.platform !== 'darwin' || !app.dock) {
|
|
return
|
|
}
|
|
|
|
if (hideDockIcon) {
|
|
app.dock.hide()
|
|
} else {
|
|
app.dock.show()
|
|
}
|
|
}
|