summaryrefslogtreecommitdiff
path: root/ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/windows/tracker.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/src/windows/tracker.cpp b/ui/src/windows/tracker.cpp
index e64eb18..66e241b 100644
--- a/ui/src/windows/tracker.cpp
+++ b/ui/src/windows/tracker.cpp
@@ -187,4 +187,14 @@ namespace turns::ui::windows
}
}
+ auto tracker::load(Glib::RefPtr<Gio::File> file) -> void
+ {
+ if (file->query_exists())
+ {
+ m_file = file;
+ m_file->load_contents_async(sigc::mem_fun(*this, &tracker::on_load_content_done));
+ set_sensitive(false);
+ }
+ }
+
} // namespace turns::ui::windows