kangyu-california / PersistentWindows

fork of http://www.ninjacrab.com/persistent-windows/ with windows 10 update
GNU General Public License v3.0
1.4k stars 50 forks source link

Restore from disk button grayed out on start #145

Closed TryhardOne closed 2 years ago

TryhardOne commented 2 years ago

Hey there, yesterday after restarting my PC I noticed the "restore from disk" button was grayed out. My first thought was that due to windows updates something was deleted.

However, today, after saving the windows to disk again yesterday, the button was grayed out again.

I restarted PersistentWindows, and now the restore button works again, with the corresponding saved windows.

kangyu-california commented 2 years ago

PW upgrade won't delete or overwrite captures saved on disk. Each unique display configuration (display scale factor, monitor count/resolution/relative location) must be individually saved to disk to enable corresponding restore menu.

The issue sounds like a reliability issue of 3rd party plugin LiteDB.dll, To verify the required db entry does exist, you may download a utility called "LiteDB Studio" from github, and open C:\Users\\AppData\Local\PersistentWindows\PersistentWindows.1.1.0.0.db, you should be able to see multiple db entries (each corresponding to a unique display configuration) image

I will try to upgrade LiteDB.dll version from 5.0.9 to 5.0.11 in next release.

TryhardOne commented 2 years ago

PW upgrade won't delete or overwrite captures saved on disk. Each unique display configuration (display scale factor, monitor count/resolution/relative location) must be individually saved to disk to enable corresponding restore menu.

The issue sounds like a reliability issue of 3rd party plugin LiteDB.dll, To verify the required db entry does exist, you may download a utility called "LiteDB Studio" from github, and open C:\Users\\AppData\Local\PersistentWindows\PersistentWindows.1.1.0.0.db, you should be able to see multiple db entries (each corresponding to a unique display configuration) image

I will try to upgrade LiteDB.dll version from 5.0.9 to 5.0.11 in next release.

yes, but there is only one entry.

kangyu-california commented 2 years ago

I figured out where the bug is (in my code). Restart PW is the recommended workaround for now

TryhardOne commented 2 years ago

I figured out where the bug is (in my code). Restart PW is the recommended workaround for now

awesome! Thanks for the ongoing fast support as well! : 3

kangyu-california commented 2 years ago

Fixed in 5.34