enable custom types from combobox

pull/5/head
Michail Vourlakos 6 years ago
parent 3d2d399072
commit 2f81ffab97

@ -65,6 +65,8 @@ LatteComponents.ComboBoxButton{
latteView.indicator.addIndicator();
} else if (item.pluginId === "download:") {
latteView.indicator.downloadIndicator();
} else {
latteView.indicator.type = item.pluginId;
}
custom.updateButtonInformation();
@ -77,8 +79,16 @@ LatteComponents.ComboBoxButton{
custom.checkable = false;
} else {
custom.checkable = true;
custom.buttonText = actionsModel.get(0).name;
custom.type = actionsModel.get(0).pluginId;
var curCustomIndex = latteView.indicator.customPluginIds.indexOf(latteView.indicator.customType);
if (curCustomIndex>=0) {
custom.buttonText = actionsModel.get(curCustomIndex).name;
custom.type = actionsModel.get(curCustomIndex).pluginId;
} else {
custom.buttonText = actionsModel.get(0).name;
custom.type = actionsModel.get(0).pluginId;
}
}
}

Loading…
Cancel
Save