mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Fix desktop showing the mobile layout: decide layout from the actual build platform (cfg!(mobile)) instead of sniffing the webview user-agent, which some WebKitGTK builds report mobile-looking (#63)
This commit is contained in:
@@ -2364,6 +2364,13 @@ fn save_app_config(config: &AppConfig) -> Result<(), String> {
|
||||
|
||||
// ── Install Type Detection ──
|
||||
|
||||
#[tauri::command]
|
||||
pub fn is_mobile_platform() -> bool {
|
||||
// Compile-time platform: true only for the Android/iOS builds. Authoritative, unlike the
|
||||
// webview user-agent, which some desktop WebKitGTK builds report mobile-looking (issue #63).
|
||||
cfg!(mobile)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn get_install_type() -> String {
|
||||
// Build-time override for distro packagers (e.g. Solus): build with
|
||||
|
||||
Reference in New Issue
Block a user