[dconf-editor] Do not show missing notification for in-app change
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Do not show missing notification for in-app change
- Date: Sun, 17 Dec 2017 01:46:40 +0000 (UTC)
commit f4624fed86fbb9524bc883671cd79ec013c8b8be
Author: Davi da Silva Böger <dsboger gmail com>
Date: Fri Dec 15 03:40:24 2017 -0200
Do not show missing notification for in-app change
editor/browser-view.vala | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/editor/browser-view.vala b/editor/browser-view.vala
index 99a6ef4..9f95883 100644
--- a/editor/browser-view.vala
+++ b/editor/browser-view.vala
@@ -382,17 +382,22 @@ class BrowserView : Grid, PathElement
[GtkCallback]
private void reload ()
{
+ reload_view (true);
+ }
+
+ private void reload_view (bool notify_missing)
+ {
if (current_view_is_browse_view ())
{
string? saved_selection = browse_view.get_selected_row_name ();
Directory? directory = window.model.get_directory (current_path);
if (directory == null)
- request_path (current_path); // rely on fallback detection
+ request_path (current_path, notify_missing); // rely on fallback detection
else
set_directory ((!) directory, saved_selection);
}
else if (current_view_is_properties_view ())
- request_path (current_path); // TODO better
+ request_path (current_path, notify_missing);
else if (current_view_is_search_results_view ())
{
hide_reload_warning ();
@@ -421,7 +426,7 @@ class BrowserView : Grid, PathElement
} // search_results_view always reloads
if (internal_changes)
- reload ();
+ reload_view (false);
else
show_hard_reload_warning ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]