mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[partition] Reduce refreshes when reverting
This commit is contained in:
parent
b9fa0398c0
commit
dff5afe227
2 changed files with 11 additions and 5 deletions
|
@ -191,7 +191,12 @@ public:
|
|||
|
||||
void revert(); // full revert, thread safe, calls doInit
|
||||
void revertAllDevices(); // convenience function, calls revertDevice
|
||||
void revertDevice( Device* dev ); // rescans a single Device and updates DeviceInfo
|
||||
/** @brief rescans a single Device and updates DeviceInfo
|
||||
*
|
||||
* When @p individualRevert is true, calls refreshAfterModelChange(),
|
||||
* used to reduce number of refreshes when calling revertAllDevices().
|
||||
*/
|
||||
void revertDevice( Device* dev, bool individualRevert=true );
|
||||
void asyncRevertDevice( Device* dev, std::function< void() > callback ); //like revertDevice, but asynchronous
|
||||
|
||||
void clearJobs(); // only clear jobs, the Device* states are preserved
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue