mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 06:22:14 +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('normalMessagesButton', 'i-msg.svg');
|
||||
defaultButton('activeMessagesButton', 'a-msg.svg');
|
||||
that.button = that.tablet.addButton({
|
||||
var buttonOptions = {
|
||||
icon: that.normalButton,
|
||||
activeIcon: that.activeButton,
|
||||
text: that.buttonName,
|
||||
sortOrder: that.sortOrder || undefined
|
||||
});
|
||||
text: that.buttonName
|
||||
};
|
||||
// `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() { };
|
||||
|
||||
// Handlers
|
||||
|
|
Loading…
Reference in a new issue