mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
Add reset method to ReplacePage.
This commit is contained in:
parent
5708b57116
commit
55b93091e6
2 changed files with 12 additions and 0 deletions
|
@ -72,6 +72,16 @@ ReplacePage::isNextEnabled() const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ReplacePage::reset()
|
||||||
|
{
|
||||||
|
int oldDeviceIndex = m_ui->deviceComboBox->currentIndex();
|
||||||
|
m_core->revert();
|
||||||
|
m_ui->deviceComboBox->setCurrentIndex( oldDeviceIndex );
|
||||||
|
updateFromCurrentDevice();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ReplacePage::applyChanges()
|
ReplacePage::applyChanges()
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,6 +39,8 @@ public:
|
||||||
|
|
||||||
bool isNextEnabled() const;
|
bool isNextEnabled() const;
|
||||||
|
|
||||||
|
void reset();
|
||||||
|
|
||||||
void applyChanges();
|
void applyChanges();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
Loading…
Add table
Reference in a new issue