fix a vip warning
This commit is contained in:
parent
b1082121d4
commit
a329deb8c5
|
@ -1,5 +1,5 @@
|
||||||
-- TIP: to find all possible translations in the modules directory use the following command
|
-- TIP: to find all possible translations in the modules directory use the following command
|
||||||
-- find \( -name "*.lua" -o -name "*.otui" \) -exec grep -oE "tr\\("(\\\\"|[^"])*"" {} \; -exec grep -oE "tr\\(\"(\\\\\"|[^\"])*\nil {} \; | sort | uniq | sed "s/^tr(.\(.*\).$/[\"\1\"] = nil,/"
|
-- find \( -name "*.lua" -o -name "*.otui" \) -exec grep -oE "tr\\('(\\\\'|[^'])*'" {} \; -exec grep -oE "tr\\(\"(\\\\\"|[^\"])*" {} \; | sort | uniq | sed "s/^tr(.\(.*\).$/[\"\1\"] = nil,/"
|
||||||
|
|
||||||
Locales = { }
|
Locales = { }
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ function Options.init()
|
||||||
|
|
||||||
optionsWindow = displayUI('options.otui')
|
optionsWindow = displayUI('options.otui')
|
||||||
optionsWindow:hide()
|
optionsWindow:hide()
|
||||||
optionsButton = TopMenu.addLeftButton('optionsButton', tr('Options'), 'options.png', Options.toggle)
|
optionsButton = TopMenu.addLeftButton('optionsButton', tr('Options') .. ' (Ctrl+P)', 'options.png', Options.toggle)
|
||||||
optionsTabBar = optionsWindow:getChildById('optionsTabBar')
|
optionsTabBar = optionsWindow:getChildById('optionsTabBar')
|
||||||
optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent'))
|
optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent'))
|
||||||
optionsTabBar:addTab(tr('General'), loadUI('general.otui'))
|
optionsTabBar:addTab(tr('General'), loadUI('general.otui'))
|
||||||
|
|
|
@ -115,7 +115,7 @@ function VipList.onVipStateChange(id, online)
|
||||||
local vipList = vipWindow:getChildById('contentsPanel')
|
local vipList = vipWindow:getChildById('contentsPanel')
|
||||||
local label = vipList:getChildById('vip' .. id)
|
local label = vipList:getChildById('vip' .. id)
|
||||||
local text = label:getText()
|
local text = label:getText()
|
||||||
vipList:removeChild(label)
|
label:destroy()
|
||||||
|
|
||||||
VipList.onAddVip(id, text, online)
|
VipList.onAddVip(id, text, online)
|
||||||
end
|
end
|
||||||
|
|
|
@ -46,6 +46,7 @@ else
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=$gitdir/src/framework/cmake/${platform}_toolchain.cmake \
|
cmake -DCMAKE_TOOLCHAIN_FILE=$gitdir/src/framework/cmake/${platform}_toolchain.cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_REVISION=$revision \
|
-DBUILD_REVISION=$revision \
|
||||||
|
-DBOT_PROTECTION=OFF \
|
||||||
-DPROTOCOL=$protocol \
|
-DPROTOCOL=$protocol \
|
||||||
.. || exit
|
.. || exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue