From 9790a51f17a30330edce0c1856a3202fc86c4b8c Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 31 Dec 2020 12:34:06 +0200 Subject: [PATCH] ggwave-gui : focus files on addFile when not on IOS --- examples/ggwave-gui/common.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/ggwave-gui/common.cpp b/examples/ggwave-gui/common.cpp index 2d5ffa5..ecbfe42 100644 --- a/examples/ggwave-gui/common.cpp +++ b/examples/ggwave-gui/common.cpp @@ -328,7 +328,10 @@ void addFile( std::memcpy(file.data.data(), dataBuffer, dataSize); g_fileServer.addFile(std::move(file)); - //g_focusFileSend = true; + +#ifndef IOS + g_focusFileSend = true; +#endif } void addFile( @@ -341,7 +344,10 @@ void addFile( file.data = std::move(data); g_fileServer.addFile(std::move(file)); - //g_focusFileSend = true; + +#ifndef IOS + g_focusFileSend = true; +#endif } std::string generateFileBroadcastMessage() {