mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix code style in materialspage
This commit is contained in:
parent
6c42b662c8
commit
caca5e5021
1 changed files with 4 additions and 2 deletions
|
|
@ -39,12 +39,14 @@ Item
|
||||||
|
|
||||||
property var hasCurrentItem: materialListView.currentItem != null
|
property var hasCurrentItem: materialListView.currentItem != null
|
||||||
|
|
||||||
property var currentItem: { // is soon to be overwritten
|
property var currentItem:
|
||||||
|
{ // is soon to be overwritten
|
||||||
var current_index = materialListView.currentIndex;
|
var current_index = materialListView.currentIndex;
|
||||||
return materialsModel.getItem(current_index);
|
return materialsModel.getItem(current_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
property var isCurrentItemActivated: {
|
property var isCurrentItemActivated:
|
||||||
|
{
|
||||||
const extruder_position = Cura.ExtruderManager.activeExtruderIndex;
|
const extruder_position = Cura.ExtruderManager.activeExtruderIndex;
|
||||||
const root_material_id = Cura.MachineManager.currentRootMaterialId[extruder_position];
|
const root_material_id = Cura.MachineManager.currentRootMaterialId[extruder_position];
|
||||||
return base.currentItem.root_material_id == root_material_id;
|
return base.currentItem.root_material_id == root_material_id;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue