web: added proper platform detection and hotkey handling

This commit is contained in:
Eugene Pankov
2021-07-17 16:39:08 +02:00
parent 4e42dfd46b
commit a725d25e46
8 changed files with 50 additions and 4 deletions

View File

@@ -9,6 +9,17 @@ h3.mb-3 Window
)
option(*ngFor='let theme of themes', [ngValue]='theme.name') {{theme.name}}
.form-line(*ngIf='hostApp.platform === Platform.Web')
.header
.title Ask before closing the browser tab
.description Prevents accidental closing
toggle(
[(ngModel)]='config.store.web.preventAccidentalTabClosure',
(ngModelChange)='saveConfiguration()',
)
.form-line(*ngIf='platform.supportsWindowControls')
.header
.title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background