mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-06-14 02:40:18 +00:00
fix download path
This commit is contained in:
@@ -44,6 +44,7 @@ REM zoitechat.rc needs to be in UCS-2 or Resource Compiler will complain
|
||||
powershell "Get-Content -Encoding UTF8 '$(ZoiteChatLib)zoitechat.rc.utf8' | Out-File '$(ZoiteChatLib)zoitechat.rc'; Remove-Item '$(ZoiteChatLib)zoitechat.rc.utf8'"
|
||||
"$(DepsRoot)\bin\glib-compile-resources.exe" --generate-header --manual-register --sourcedir "$(DataDir)" --target "$(ZoiteChatLib)resources.h" "$(DataDir)zoitechat.gresource.xml"
|
||||
"$(DepsRoot)\bin\glib-compile-resources.exe" --generate-source --manual-register --sourcedir "$(DataDir)" --target "$(ZoiteChatLib)resources.c" "$(DataDir)zoitechat.gresource.xml"
|
||||
"$(Python3Path)\python.exe" "$(DataDir)misc\fetch_offline_docs.py" "$(OfflineDocsUrl)" "$(ZoiteChatRel)." "$(SolutionDir).."
|
||||
]]></Command>
|
||||
<Message>Build zoitechat.rc and gresource file</Message>
|
||||
</PreBuildEvent>
|
||||
|
||||
@@ -1717,7 +1717,32 @@ menu_ctcpguiopen (void)
|
||||
static void
|
||||
menu_docs (GtkWidget *wid, gpointer none)
|
||||
{
|
||||
fe_open_url ("https://docs.zoitechat.org/en/latest/");
|
||||
GNetworkMonitor *monitor;
|
||||
char *offline_docs;
|
||||
gboolean online;
|
||||
|
||||
offline_docs = g_build_filename (get_xdir (), "offline-docs", "index.html", NULL);
|
||||
if (g_access (offline_docs, R_OK) == 0)
|
||||
{
|
||||
fe_open_url (offline_docs);
|
||||
g_free (offline_docs);
|
||||
return;
|
||||
}
|
||||
g_free (offline_docs);
|
||||
offline_docs = g_build_filename (ZOITECHATDOCDIR, "index.html", NULL);
|
||||
if (g_access (offline_docs, R_OK) == 0)
|
||||
{
|
||||
fe_open_url (offline_docs);
|
||||
g_free (offline_docs);
|
||||
return;
|
||||
}
|
||||
g_free (offline_docs);
|
||||
online = TRUE;
|
||||
monitor = g_network_monitor_get_default ();
|
||||
if (monitor)
|
||||
online = g_network_monitor_get_network_available (monitor);
|
||||
if (online)
|
||||
fe_open_url ("https://docs.zoitechat.org/en/latest/");
|
||||
}
|
||||
|
||||
/*static void
|
||||
|
||||
Reference in New Issue
Block a user