Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.54k stars 174 forks source link

python def folding not working, if last line is indented #5785

Open adoeller opened 1 week ago

adoeller commented 1 week ago
    def closeEvent(self, event):
        if self.unsaved_changes:
            # Abfrage, ob gespeichert werden soll
            reply = show_custom_message_box(self, "Speichern", "Möchten Sie die ADIF-Datei vor dem Beenden speichern?", 3, True)

            if reply is True:
                self.save_to_adif()
                event.accept()  # Anwendung beenden
            elif reply is False:
                event.accept()  # Ohne Speichern beenden
            else:
                event.ignore()  # Abbrechen und Fenster offen lassen
        else:
            event.accept()  # Keine ungespeicherten Änderungen, normal beenden

grafik

Alexey-T commented 6 days ago

Thanks. Will see it soon.