keyboardio / Chrysalis

Graphical configurator for Kaleidoscope-powered keyboards
https://github.com/keyboardio/Chrysalis#chrysalis
GNU General Public License v3.0
496 stars 64 forks source link

Editor: Always show the "Copy layer" and "Paste layer" buttons #1166

Closed algernon closed 2 years ago

algernon commented 2 years ago

The Overview footer was only displayed in the past when we had empty layers. The "Copy layer" and "Paste layer" buttons were later added to the same footer - but the condition on displaying the footer remained intact. This resulted in these buttons disappearing when we had no empty layers.

Lets display the footer unconditionally, and only do the hiding logic for the empty layer toggle button.

Fixes #1162.