From 6df08042ae4509ef2c8fd469babf6eb1c1cfbabf Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 29 Jul 2024 14:32:05 +0200 Subject: app: enable start with files to open --- ui/src/windows/tracker.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ui/src') 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 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 -- cgit v1.2.3