But that condition is not always met when it was called by clicking the "New" button, because columns of the timetable is always set as not modified soon after the dialog is shown:
To solve this problem, I create a new method, immigrate is_modified sentences into that method, and call that method after the saving process is done (thus user saves their timetable) and when user doesn't save their timetable.
Steps to reproduce the behavior
Solution
Before saving the timetable, we have this condition:
https://github.com/lainsce/timetable/blob/b72fce896e3da6a0d7fc454fd53c3433d0cbea39/src/Services/FileManager.vala#L76
But that condition is not always met when it was called by clicking the "New" button, because columns of the timetable is always set as not modified soon after the dialog is shown:
https://github.com/lainsce/timetable/blob/b72fce896e3da6a0d7fc454fd53c3433d0cbea39/src/Services/FileManager.vala#L41-L49
To solve this problem, I create a new method, immigrate
is_modified
sentences into that method, and call that method after the saving process is done (thus user saves their timetable) and when user doesn't save their timetable.