timeline refactor, bit broken rn
This commit is contained in:
1 parent
1e35910b0a
commit
e2799b1e58
41 files changed
+2034
-1374
No files matched your search
+6
-1
@@ -2,6 +2,9 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <window.h>
|
||||
#elif __unix__
|
||||
#else
|
||||
#include "toast.h"
|
||||
#endif
|
||||
|
||||
#include <format>
|
||||
@@ -57,8 +60,10 @@ namespace anm2ed
|
||||
{
|
||||
#ifdef _WIN32
|
||||
ShellExecuteA(NULL, "open", path.c_str(), NULL, NULL, SW_SHOWNORMAL);
|
||||
#else
|
||||
#elif __unix__
|
||||
system(std::format("xdg-open \"{}\" &", path).c_str());
|
||||
#else
|
||||
toasts.info("Operation not supported.");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user