forked from Blendman974/faceclaw
EvenHub app uses logo; move login from the Settings app into the EvenHub app
This commit is contained in:
1 parent
83e0fa919f
commit
deac81f98f
15 files changed
+443
-90
No files matched your search
@@ -79,12 +79,16 @@ function applySettingsTextFieldContrast(textField: TextField): void {
|
||||
nativeTextField.setSelectAllOnFocus(true)
|
||||
}
|
||||
|
||||
function focusSystemNameField(page: Page): void {
|
||||
function focusTextEditor(page: Page): void {
|
||||
setTimeout(() => {
|
||||
const textField = page.getViewById<TextField>('settingsTextField')
|
||||
const secondaryTextField = page.getViewById<TextField>('secondarySettingsTextField')
|
||||
if (textField) {
|
||||
applySettingsTextFieldContrast(textField)
|
||||
}
|
||||
if (secondaryTextField) {
|
||||
applySettingsTextFieldContrast(secondaryTextField)
|
||||
}
|
||||
textField?.focus()
|
||||
}, 0)
|
||||
}
|
||||
@@ -139,7 +143,7 @@ export function loaded(args: EventData) {
|
||||
}
|
||||
if (propertyArgs.propertyName === 'activeTextSettingId') {
|
||||
if (model.isTextSettingEditorActive) {
|
||||
focusSystemNameField(page)
|
||||
focusTextEditor(page)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -160,7 +164,7 @@ export function loaded(args: EventData) {
|
||||
setPageState(page, state)
|
||||
scrollLogsToBottom(scrollViews)
|
||||
if (model.isTextSettingEditorActive) {
|
||||
focusSystemNameField(page)
|
||||
focusTextEditor(page)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user