Not worked in gedit 3.36.2
webmastak opened this issue Β· comments
You could fix for gedit 3.36.2 ?
I fixed it myself.
Before:
def _update_via_doc(self, doc):
if doc and doc.get_encoding() is not None:
self._label.set_text(doc.get_encoding().to_string())
After:
def _update_via_doc(self, doc):
if doc and doc.get_file().get_encoding() is not None:
self._label.set_text(doc.get_file().get_encoding().to_string())