mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Added reload profile (simply clears user instance container)
CURA-1278
This commit is contained in:
parent
11cb9af97f
commit
ad35c9f070
2 changed files with 25 additions and 2 deletions
|
@ -6,6 +6,7 @@ pragma Singleton
|
|||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.1
|
||||
import UM 1.1 as UM
|
||||
import Cura 1.0 as Cura
|
||||
|
||||
Item
|
||||
{
|
||||
|
@ -117,9 +118,9 @@ Item
|
|||
Action
|
||||
{
|
||||
id: resetProfileAction;
|
||||
enabled: UM.ActiveProfile.valid && UM.ActiveProfile.hasCustomisedValues
|
||||
enabled: Cura.MachineManager.hasUserSettings
|
||||
text: catalog.i18nc("@action:inmenu menubar:profile","&Reload Current Profile");
|
||||
onTriggered: UM.ActiveProfile.discardChanges();
|
||||
onTriggered: Cura.MachineManager.clearUserSettings();
|
||||
}
|
||||
|
||||
Action
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue