mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Safety measure: remount tmpfs
This commit is contained in:
parent
19f31e1d44
commit
46dd4bd8f0
1 changed files with 5 additions and 0 deletions
|
@ -333,6 +333,9 @@ reader::reader(QWidget *parent) :
|
|||
|
||||
// Checking if we're waking from sleep; if so, do nothing there because the book should already have been parsed
|
||||
if(wakeFromSleep != true) {
|
||||
// Remount tmpfs
|
||||
string_writeconfig("/inkbox/remount", "true");
|
||||
|
||||
// Counting number of parsed files
|
||||
split_total = setup_book(book_file, 0, true);
|
||||
split_files_number = split_total;
|
||||
|
@ -895,6 +898,8 @@ void reader::on_homeBtn_clicked()
|
|||
{
|
||||
// We're leaving reading mode
|
||||
string_writeconfig("/tmp/inkboxReading", "false");
|
||||
// Remount tmpfs
|
||||
string_writeconfig("/inkbox/remount", "true");
|
||||
|
||||
// Relaunching process
|
||||
quit_restart();
|
||||
|
|
Loading…
Reference in a new issue