Browse Source

Add logging to system::openBrowser() and openDirectory().

tags/v2.5.1
Andrew Belt 6 months ago
parent
commit
8b12a18f0d
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/system.cpp

+ 5
- 0
src/system.cpp View File

@@ -41,6 +41,7 @@


#include <system.hpp> #include <system.hpp>
#include <string.hpp> #include <string.hpp>
#include <logger.hpp>




/* /*
@@ -892,6 +893,8 @@ void openBrowser(const std::string& url) {
if (url.empty()) if (url.empty())
return; return;


INFO("Opening browser URL %s", url.c_str());

std::string urlL = url; std::string urlL = url;
std::thread t([=] { std::thread t([=] {
#if defined ARCH_LIN #if defined ARCH_LIN
@@ -914,6 +917,8 @@ void openDirectory(const std::string& path) {
if (path.empty()) if (path.empty())
return; return;


INFO("Opening directory %s", path.c_str());

std::string pathL = path; std::string pathL = path;
std::thread t([=] { std::thread t([=] {
#if defined ARCH_LIN #if defined ARCH_LIN


Loading…
Cancel
Save