mirror of https://github.com/odrling/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
|
@ -1369,9 +1369,8 @@ void FrameMain::OnOpenStylingAssistant (wxCommandEvent &) {
|
||||||
|
|
||||||
/// @brief Autosave the currently open file, if any
|
/// @brief Autosave the currently open file, if any
|
||||||
void FrameMain::OnAutoSave(wxTimerEvent &) {
|
void FrameMain::OnAutoSave(wxTimerEvent &) {
|
||||||
// Auto Save
|
|
||||||
try {
|
try {
|
||||||
if (ass->loaded) {
|
if (ass->loaded && ass->IsModified()) {
|
||||||
// Set path
|
// Set path
|
||||||
wxFileName origfile(ass->filename);
|
wxFileName origfile(ass->filename);
|
||||||
wxString path = lagi_wxString(OPT_GET("Path/Auto/Save")->GetString());
|
wxString path = lagi_wxString(OPT_GET("Path/Auto/Save")->GetString());
|
||||||
|
|
Loading…
Reference in New Issue