Make emulator even more obvious (#1978) by seerlite

* Prefix layout notice with "emulating"

Makes it clearer for people that might have set it to use the emulator
before but haven't noticed the name change in the settings/command line.

* Replace _ in layout name with spaces in notice
This commit is contained in:
SeerLite 2021-10-10 12:10:24 -03:00 committed by GitHub
parent 23a9915495
commit d7b5483561
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -615,7 +615,10 @@ export function updateModesNotice() {
if (Config.layout !== "default") {
$(".pageTest #testModesNotice").append(
`<div class="text-button" commands="commandsLayouts"><i class="fas fa-keyboard"></i>${Config.layout}</div>`
`<div class="text-button" commands="commandsLayouts"><i class="fas fa-keyboard"></i>emulating ${Config.layout.replace(
/_/g,
" "
)}</div>`
);
}