Skip to content

Commit ee419dc

Browse files
Update preferences_window.py
1 parent d935133 commit ee419dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gradia/ui/preferences/preferences_window.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from gi.repository import Gtk, Adw, GLib, Gio, GObject
2121
from typing import Optional
2222

23-
from gradia.constants import rootdir # pyright: ignore
23+
from gradia.constants import rootdir, ocr_enabled # pyright: ignore
2424
from gradia.backend.settings import Settings
2525
from gradia.app_constants import SUPPORTED_EXPORT_FORMATS
2626
from gradia.backend.logger import Logger
@@ -45,6 +45,8 @@ class PreferencesWindow(Adw.PreferencesDialog):
4545
exiting_combo: Adw.ComboRow = Gtk.Template.Child()
4646
folder_label: Gtk.Label = Gtk.Template.Child()
4747

48+
ocr_enabled = GObject.Property(type=bool, default=ocr_enabled.lower() == 'true')
49+
4850
def __init__(self, parent_window: Adw.ApplicationWindow, **kwargs):
4951
super().__init__(**kwargs)
5052

0 commit comments

Comments
 (0)