mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
createvol: Only show file formats that can be created
This commit is contained in:
parent
d90a28d997
commit
0b9c6fab97
@ -155,7 +155,11 @@ class vmmCreateVolume(vmmGObjectUI):
|
||||
def populate_vol_format(self):
|
||||
model = self.window.get_widget("vol-format").get_model()
|
||||
model.clear()
|
||||
|
||||
formats = self.vol_class.formats
|
||||
if hasattr(self.vol_class, "create_formats"):
|
||||
formats = getattr(self.vol_class, "create_formats")
|
||||
|
||||
for f in formats:
|
||||
model.append([f, f])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user