mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
Apply suggestions from code review
This commit is contained in:
parent
8bb1b0bee8
commit
784cd2c99b
@ -259,7 +259,7 @@ UM.ManagementPage
|
|||||||
currentFolder: CuraApplication.getDefaultPath("dialog_material_path")
|
currentFolder: CuraApplication.getDefaultPath("dialog_material_path")
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
var nameFilterString = selectedNameFilter.index >= 0 ? nameFilters[selectedNameFilter.index] : nameFilters[0]
|
const nameFilterString = selectedNameFilter.index >= 0 ? nameFilters[selectedNameFilter.index] : nameFilters[0];
|
||||||
|
|
||||||
const result = Cura.ContainerManager.exportContainer(base.currentItem.root_material_id, nameFilterString, selectedFile);
|
const result = Cura.ContainerManager.exportContainer(base.currentItem.root_material_id, nameFilterString, selectedFile);
|
||||||
|
|
||||||
|
@ -357,7 +357,7 @@ UM.ManagementPage
|
|||||||
|
|
||||||
// If nameFilters contains only 1 item, the index of selectedNameFilter will always be -1
|
// If nameFilters contains only 1 item, the index of selectedNameFilter will always be -1
|
||||||
// This fetches the nameFilter at index selectedNameFilter.index if it is positive
|
// This fetches the nameFilter at index selectedNameFilter.index if it is positive
|
||||||
var nameFilterString = selectedNameFilter.index >= 0 ? nameFilters[selectedNameFilter.index] : nameFilters[0]
|
const nameFilterString = selectedNameFilter.index >= 0 ? nameFilters[selectedNameFilter.index] : nameFilters[0];
|
||||||
|
|
||||||
var result = Cura.ContainerManager.exportQualityChangesGroup(base.currentItem.quality_changes_group,
|
var result = Cura.ContainerManager.exportQualityChangesGroup(base.currentItem.quality_changes_group,
|
||||||
selectedFile, nameFilterString);
|
selectedFile, nameFilterString);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user