You are here: PSPad forum > English discussion forum > [Question] - PSPad and computer suspend

[Question] - PSPad and computer suspend

#1 [Question] - PSPad and computer suspend

Posted by: pspad | Date: 2020-01-31 10:44 | IP: IP Logged

When computer will go to sleep, suspend, hibernate, PSpad should react to it.
In this moment I tested event and I am able to handle this state.

I will disconnect existing FTP connection.
Do you have any other ideas, what should be done? Like change folder if it's set to some UNC drive or ?

Options: Reply | Quote | Up ^


#2 Re: [Question] - PSPad and computer suspend

Posted by: Vany | Date: 2020-01-31 13:20 | IP: IP Logged

automatically save the unsaved work to temporary file(s) without asking

--
Vany
(PSPad 5.5.1.812 x32, W10h/p x64 en/cs)

Options: Reply | Quote | Up ^


#3 Re: [Question] - PSPad and computer suspend

Posted by: pspad | Date: 2020-01-31 21:06 | IP: IP Logged

Vany:
automatically save the unsaved work to temporary file(s) without asking

But after restore they will have wrong filenames.
I understand it has sense for new unsaved files. But what to do with unsaved existing files?

Options: Reply | Quote | Up ^


#4 Re: [Question] - PSPad and computer suspend

Posted by: vbr | Date: 2020-02-03 08:49 | IP: IP Logged

pspad:
Vany:
automatically save the unsaved work to temporary file(s) without asking

But after restore they will have wrong filenames.
I understand it has sense for new unsaved files. But what to do with unsaved existing files?

Hi,
in such case (already existing file with unsaved changes), I would prefer creating a parallel backup of the current content in a temporary file (same as is planned for a new unsaved fie) and keeping the last realy saved state for the existing one.
Ideally, on resuming/reopening the editor, a message could be displayed, informing about the two available versions of the file: one in the originally saved state, and an automatically backup-ed file with the state before the computer suspend.
Regards,
vbr

Options: Reply | Quote | Up ^


#5 Re: [Question] - PSPad and computer suspend

Posted by: pspad | Date: 2020-02-03 09:14 | IP: IP Logged

Nice idea. I need to think where to store information about backup copy.
With new unsaved modified files it works already in last developer build.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR