wow-launcher/qml/components/ContextMenu.qml
2025-01-08 15:18:16 +07:00

37 lines
906 B
QML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import QtQuick 2.15
import QtQuick.Controls 2.15
import "../Theme" as Theme
Menu {
id: contextMenu
MenuItem {
text: "Открыть папку с игрой"
enabled: launcher && launcher.gamePath
onTriggered: launcher.openGameFolder()
}
MenuItem {
text: "Проверить файлы"
enabled: launcher && launcher.gamePath && !launcher.isDownloading
onTriggered: launcher.verifyFiles()
}
MenuItem {
text: "Восстановить клиент"
enabled: launcher && launcher.gamePath && !launcher.isDownloading
onTriggered: launcher.repairClient()
}
MenuSeparator { }
MenuItem {
text: "Настройки"
onTriggered: settingsDialog.open()
}
MenuItem {
text: "О программе"
onTriggered: aboutDialog.open()
}
}