File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,12 @@ def _type_selected(self, button: Gtk.RadioButton):
206
206
load_icon ('qubes-question' , 20 , 20 ))
207
207
return
208
208
self .template_handler .change_vm_type (button_name )
209
+
210
+ if button_name == 'qube_type_template' :
211
+ self .network_selector .network_none .set_active (True )
212
+ else :
213
+ self .network_selector .network_default .set_active (True )
214
+
209
215
self .tooltips [button_name ].set_from_pixbuf (load_icon (
210
216
'qubes-question-light' , 20 , 20 ))
211
217
@@ -227,8 +233,10 @@ def _do_create_qube(self, *_args):
227
233
228
234
properties : Dict [str , Any ] = {'provides_network' :
229
235
self .advanced_handler .get_provides_network ()}
230
- if self .network_selector .get_selected_netvm () != qubesadmin .DEFAULT :
231
- properties ['netvm' ] = self .network_selector .get_selected_netvm ()
236
+ selected_netvm = self .network_selector .get_selected_netvm ()
237
+ if not (klass == 'TemplateVM' and selected_netvm is None ) \
238
+ and selected_netvm != qubesadmin .DEFAULT :
239
+ properties ['netvm' ] = selected_netvm
232
240
if klass == 'StandaloneVM' and \
233
241
not self .template_handler .get_selected_template ():
234
242
properties ['virt_mode' ] = 'hvm'
You can’t perform that action at this time.
0 commit comments