mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
CURA-5254 Keep track of the latest manual entry key, so it is then
selected in the list.
This commit is contained in:
parent
74a7452333
commit
eea9b7ab46
3 changed files with 25 additions and 2 deletions
|
@ -158,7 +158,10 @@ Cura.MachineAction
|
|||
model: manager.foundDevices
|
||||
onModelChanged:
|
||||
{
|
||||
var selectedKey = manager.getStoredKey();
|
||||
var selectedKey = manager.getLastManualEntryKey()
|
||||
// If there is no last manual entry key, then we select the stored key (if any)
|
||||
if (selectedKey == "")
|
||||
selectedKey = manager.getStoredKey()
|
||||
for(var i = 0; i < model.length; i++) {
|
||||
if(model[i].key == selectedKey)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue