Skip to content
Snippets Groups Projects
Commit bdec942d authored by Andreas Hatziiliou's avatar Andreas Hatziiliou Committed by François-Simon Fauteux-Chapleau
Browse files

shortcuts: fix unintended menu behavior

Fixed small issue where the button to bring up the keyboard
shortcuts menu would not be brought up if it was previously
hidden or minimized.

Change-Id: I89b021ca7a00c67325c992fde9cd14fbb8b82cf3
parent 35d55954
Branches
Tags
No related merge requests found
......@@ -46,7 +46,6 @@ function finishCreation() {
}
function showKeyboardShortcutTableWindow() {
keyboardShortcutTableWindowObject.show()
var centerX = mainWindow.x + mainWindow.width / 2
var centerY = mainWindow.y + mainWindow.height / 2
......@@ -54,6 +53,11 @@ function showKeyboardShortcutTableWindow() {
keyboardShortcutTableWindowObject.height = 0.75 * appWindow.height
keyboardShortcutTableWindowObject.x = centerX - keyboardShortcutTableWindowObject.width / 2
keyboardShortcutTableWindowObject.y = centerY - keyboardShortcutTableWindowObject.height / 2
keyboardShortcutTableWindowObject.visible = true
keyboardShortcutTableWindowObject.show()
keyboardShortcutTableWindowObject.raise()
keyboardShortcutTableWindowObject.requestActivate()
}
// Destroy and reset selectScreenWindowObject when window is closed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment