diff options
Diffstat (limited to 'components/chatinputindicator.cpp')
-rw-r--r-- | components/chatinputindicator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/chatinputindicator.cpp b/components/chatinputindicator.cpp index 3b43b7e..8b05c71 100644 --- a/components/chatinputindicator.cpp +++ b/components/chatinputindicator.cpp @@ -21,8 +21,9 @@ ChatInputIndicator::ChatInputIndicator() m_label.show(); // try loading gif - if (!std::filesystem::exists("./res/typing_indicator.gif")) return; - auto gif_data = ReadWholeFile("./res/typing_indicator.gif"); + const static auto path = Abaddon::GetResPath("/typing_indicator.gif"); + if (!std::filesystem::exists(path)) return; + auto gif_data = ReadWholeFile(path); auto loader = Gdk::PixbufLoader::create(); loader->signal_size_prepared().connect([&](int inw, int inh) { int w, h; |