Skip to content

Commit

Permalink
Fix issue with recalling keyboard layouts for non-Kira boards
Browse files Browse the repository at this point in the history
  • Loading branch information
jbondeson committed Dec 28, 2018
1 parent 5038cc1 commit f81dc9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/device/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function buildKeyboardList() {
},
{
display: names.KType,
names: ['K-Type', 'KType'],
names: ['KType', 'K-Type'],
variants: [variants.Standard],
visuals: true,
layouts: layouts([variants.Standard, ['Standard', 'NoAnimations']]),
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/configure/buttons/layout-history.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { withStyles, Button, Menu, MenuItem, Divider, ListItemIcon } from '../../mui';
import { HistoryIcon, StarBorderIcon, DownloadOutlineIcon } from '../../icons';
import { loadRemoteConfig, loadLocalConfig, useCoreState, useSettingsState } from '../../state';
Expand All @@ -26,7 +27,7 @@ function LayoutHistoryButton(props) {
const [recentDls] = useSettingsState('recentDls');
const layouts = keyboard && variant ? keyboard.keyboard.layouts[variant] : [];
/** @type import('../../local-storage/firmware').FirmwareResult[] */
const recent = keyboard && variant ? recentDls[`${keyboard.keyboard.display}__${variant}`] : [];
const recent = keyboard && variant ? recentDls[`${_.head(keyboard.keyboard.names)}__${variant}`] : [];

const closeMenu = () => setAnchor(null);
function loadRemote(layout) {
Expand Down

0 comments on commit f81dc9e

Please sign in to comment.