diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 8a4553e4..180ce3a5 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -253,6 +253,7 @@ struct _EvWindowPrivate { #define GS_SCHEMA_NAME "org.mate.Atril" #define GS_OVERRIDE_RESTRICTIONS "override-restrictions" +#define GS_AUTO_RELOAD "auto-reload" #define SIDEBAR_DEFAULT_SIZE 132 #define LINKS_SIDEBAR_ID "links" @@ -1629,7 +1630,9 @@ static void ev_window_document_changed (EvWindow *ev_window, gpointer user_data) { - ev_window_reload_document (ev_window, NULL); + if (ev_window->priv->settings && + g_settings_get_boolean (ev_window->priv->settings, GS_AUTO_RELOAD)) + ev_window_reload_document (ev_window, NULL); } static void |