Fix keymap tooltips

This commit is contained in:
luboslenco
2021-02-24 17:17:07 +01:00
parent 9da4f074de
commit 1b47740a96
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class TabLayers {
History.newLayer();
}
if (ui.button(tr("2D View"))) UISidebar.inst.show2DView(View2DLayer);
else if (ui.isHovered) ui.tooltip(tr("Show 2D View") + ' (${Config.keymap.toggle_node_editor})');
else if (ui.isHovered) ui.tooltip(tr("Show 2D View") + ' (${Config.keymap.toggle_2d_view})');
var ar = [tr("All")];
for (p in Project.paintObjects) ar.push(p.name);
+1 -1
View File
@@ -42,7 +42,7 @@ class TabMaterials {
if (ui.button(tr("Nodes"))) {
UISidebar.inst.showMaterialNodes();
}
else if (ui.isHovered) ui.tooltip(tr("Show Node Editor") + ' (${Config.keymap.toggle_2d_view})');
else if (ui.isHovered) ui.tooltip(tr("Show Node Editor") + ' (${Config.keymap.toggle_node_editor})');
ui.endSticky();
ui.separator(3, false);