summaryrefslogtreecommitdiff
path: root/components/chatinputindicator.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-06-30 18:15:03 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-06-30 18:15:03 -0400
commit698ec52d5c056f3584c46e67b199adcfba9f8d2e (patch)
tree3b48df8eed852c2f4ecbdbcaaff9bf29d16f7b50 /components/chatinputindicator.cpp
parent220aa6d13a9cb12687139305c6f68eb9cf6f73a1 (diff)
downloadabaddon-portaudio-698ec52d5c056f3584c46e67b199adcfba9f8d2e.tar.gz
abaddon-portaudio-698ec52d5c056f3584c46e67b199adcfba9f8d2e.zip
try loading resources from share, fallback to cwd
Diffstat (limited to 'components/chatinputindicator.cpp')
-rw-r--r--components/chatinputindicator.cpp5
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;