mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:57:24 +02:00
Fix SortOrder
This commit is contained in:
parent
e00dbcecc6
commit
394f93f39c
1 changed files with 10 additions and 4 deletions
|
@ -87,12 +87,18 @@ function AppUi(properties) {
|
||||||
defaultButton('activeButton', 'a.svg');
|
defaultButton('activeButton', 'a.svg');
|
||||||
defaultButton('normalMessagesButton', 'i-msg.svg');
|
defaultButton('normalMessagesButton', 'i-msg.svg');
|
||||||
defaultButton('activeMessagesButton', 'a-msg.svg');
|
defaultButton('activeMessagesButton', 'a-msg.svg');
|
||||||
that.button = that.tablet.addButton({
|
var buttonOptions = {
|
||||||
icon: that.normalButton,
|
icon: that.normalButton,
|
||||||
activeIcon: that.activeButton,
|
activeIcon: that.activeButton,
|
||||||
text: that.buttonName,
|
text: that.buttonName
|
||||||
sortOrder: that.sortOrder || undefined
|
};
|
||||||
});
|
// `TabletScriptingInterface` looks for the presence of a `sortOrder` key.
|
||||||
|
// What it SHOULD do is look to see if the value inside that key is defined.
|
||||||
|
// To get around the current code, we do this instead.
|
||||||
|
if (that.sortOrder) {
|
||||||
|
buttonOptions.sortOrder = that.sortOrder;
|
||||||
|
}
|
||||||
|
that.button = that.tablet.addButton(buttonOptions);
|
||||||
that.ignore = function ignore() { };
|
that.ignore = function ignore() { };
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
|
|
Loading…
Reference in a new issue