From: Dominik Csapak <d.csapak@proxmox.com>
To: Jakob Klocker <j.klocker@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH manager v2] fix #7896: ui: qemu: show effective machine version for Windows guests
Date: Wed, 26 Aug 2026 10:36:35 +0200 [thread overview]
Message-ID: <382da81b-b48b-4047-9fb0-a9d355573902@proxmox.com> (raw)
In-Reply-To: <20260824130155.249596-1-j.klocker@proxmox.com>
one comment inline
On 8/24/26 3:01 PM, Jakob Klocker wrote:
[snip]
> q35: (get) => get('type') === 'q35',
> @@ -102,10 +104,21 @@ Ext.define('PVE.qemu.MachineInputPanel', {
> }
>
> if (me.isWindows) {
> - if (values.machine === '__default__') {
> - values.version = 'pc-i440fx-5.1';
> - } else if (values.machine === 'q35') {
> - values.version = 'pc-q35-5.1';
> + if (values.machine === '__default__' || values.machine === 'q35') {
> + let effective = PVE.Utils.qemu_implicit_machine_version(
> + values.machine,
> + values.creationQemu,
> + values.arch,
> + );
> + me.getViewModel().set({
> + effectiveVersionLabel: effective + ' ' + gettext('(implicit)'),
> + implicitVersion: true,
> + });
> + me.setAdvancedVisible(true);
> + // flush the binding, then re-baseline the reset value to it
> + // otherwise the Reset button reverts to the field's empty initial value
> + me.getViewModel().notify();
> + me.lookup('effectiveVersion').resetOriginalValue();
under which circumstances is this necessary?
even with those two statements deleted, i can't trigger it to have
the reset button enabled?
in general, we probably shouldn't mess with the 'resetOriginalValue' too
much, but if we do, having the steps where this is necessary
would be good (does not have to be a comment, in the commit message is
fine for me)
prev parent reply other threads:[~2026-08-26 8:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-24 13:01 [PATCH manager v2] fix #7896: ui: qemu: show effective machine version for Windows guests Jakob Klocker
2026-08-26 8:36 ` Dominik Csapak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=382da81b-b48b-4047-9fb0-a9d355573902@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=j.klocker@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox