settings: add seamless_gui_mode settings (#810)
This commit is contained in:
parent
ad99db9ca9
commit
a09f558b4b
@ -289,6 +289,12 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
else:
|
else:
|
||||||
self.run_in_debug_mode.setVisible(False)
|
self.run_in_debug_mode.setVisible(False)
|
||||||
|
|
||||||
|
if hasattr(self.vm, 'seamless_gui_mode'):
|
||||||
|
self.seamless_gui.setVisible(True)
|
||||||
|
self.seamless_gui.setChecked(self.vm.seamless_gui_mode)
|
||||||
|
else:
|
||||||
|
self.seamless_gui.setVisible(False)
|
||||||
|
|
||||||
#type
|
#type
|
||||||
self.type_label.setText(self.vm.type)
|
self.type_label.setText(self.vm.type)
|
||||||
|
|
||||||
@ -399,6 +405,14 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
msg.append(str(ex))
|
msg.append(str(ex))
|
||||||
|
|
||||||
|
try:
|
||||||
|
if self.seamless_gui.isVisible():
|
||||||
|
if self.vm.seamless_gui_mode != self.seamless_gui.isChecked():
|
||||||
|
self.vm.seamless_gui_mode = self.seamless_gui.isChecked()
|
||||||
|
self.anything_changed = True
|
||||||
|
except Exception as ex:
|
||||||
|
msg.append(str(ex))
|
||||||
|
|
||||||
#max priv storage
|
#max priv storage
|
||||||
priv_size = self.max_priv_storage.value()
|
priv_size = self.max_priv_storage.value()
|
||||||
if self.priv_img_size != priv_size:
|
if self.priv_img_size != priv_size:
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<locale language="English" country="UnitedStates"/>
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>2</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="basic_tab">
|
<widget class="QWidget" name="basic_tab">
|
||||||
<property name="locale">
|
<property name="locale">
|
||||||
@ -119,6 +119,13 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QCheckBox" name="seamless_gui">
|
||||||
|
<property name="text">
|
||||||
|
<string>Seamless GUI</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -131,6 +138,9 @@
|
|||||||
<string>General</string>
|
<string>General</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout_4">
|
<layout class="QFormLayout" name="formLayout_4">
|
||||||
|
<property name="fieldGrowthPolicy">
|
||||||
|
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||||
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_13">
|
<widget class="QLabel" name="label_13">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
Reference in New Issue
Block a user