Changed private image setting step to 256 MB
This commit is contained in:
parent
12b2dde943
commit
7d4c74b85e
@ -234,10 +234,9 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
self.networking_groupbox.setEnabled(False);
|
||||
|
||||
|
||||
#maxmem
|
||||
self.priv_size.setValue(int(self.vm.maxmem)/1024)
|
||||
self.priv_size.setMinimum(0)
|
||||
self.priv_size.setMaximum(QubesHost().memory_total/1024/1024)
|
||||
#max priv size
|
||||
self.priv_size.setValue(int(self.vm.memory))
|
||||
self.priv_size.setMaximum(QubesHost().memory_total/1024)
|
||||
|
||||
#self.vmname.selectAll()
|
||||
#self.vmname.setFocus()
|
||||
@ -307,11 +306,9 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
#include in backups
|
||||
self.vm.include_in_backups = self.include_in_backups.isChecked()
|
||||
|
||||
#maxmem
|
||||
maxmem = self.priv_size.value()*1024
|
||||
if maxmem == 0:
|
||||
maxmem = 256
|
||||
self.vm.maxmem = maxmem
|
||||
#max priv size
|
||||
priv_size = self.priv_size.value()
|
||||
self.vm.memory = priv_size
|
||||
|
||||
return msg
|
||||
|
||||
|
@ -171,18 +171,24 @@
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>256</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>10000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>256</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>2</number>
|
||||
<number>256</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>GB</string>
|
||||
<string>MB</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -339,11 +345,14 @@
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>256</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>10000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>100</number>
|
||||
<number>256</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>400</number>
|
||||
|
Loading…
Reference in New Issue
Block a user