mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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
|
||||
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…
x
Reference in New Issue
Block a user