forked from mia/Aegisub
Only autosave if there are unsaved changes to the file
Originally committed to SVN as r4771.
This commit is contained in:
parent
7e72a9e0cf
commit
2662a69b2e
1 changed files with 1 additions and 2 deletions
|
@ -1369,9 +1369,8 @@ void FrameMain::OnOpenStylingAssistant (wxCommandEvent &) {
|
|||
|
||||
/// @brief Autosave the currently open file, if any
|
||||
void FrameMain::OnAutoSave(wxTimerEvent &) {
|
||||
// Auto Save
|
||||
try {
|
||||
if (ass->loaded) {
|
||||
if (ass->loaded && ass->IsModified()) {
|
||||
// Set path
|
||||
wxFileName origfile(ass->filename);
|
||||
wxString path = lagi_wxString(OPT_GET("Path/Auto/Save")->GetString());
|
||||
|
|
Loading…
Reference in a new issue