Skip to content

Commit 5da37cb

Browse files
committed
25.9.7 Some fix
1 parent e7ccc4d commit 5da37cb

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

Debug/addons/titlebar/config.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<TablacusExplorer>
33
<General>
4-
<Version>1.09</Version>
5-
<MinVersion>2021.3.27</MinVersion>
6-
<pubDate>Tue, 17 Aug 2021 00:00:00 GMT</pubDate>
4+
<Version>1.10</Version>
5+
<MinVersion>2025.8.6</MinVersion>
6+
<pubDate>Wed, 03 Sep 2025 00:00:00 GMT</pubDate>
7+
<Options>Common:0:0</Options>
78
<Level>2</Level>
89
<Creator>Gaku</Creator>
910
<URL>https://tablacus.github.io/TablacusExplorerAddons/</URL>

Debug/addons/titlebar/options.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<label><input type="checkbox" name="ShowFullPath">@shell32.dll,-30504[Display the full path in the title bar]</label>

Debug/addons/titlebar/script.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1+
const Addon_Id = "titlebar";
12
if (window.Addon == 1) {
3+
const item = GetAddonElement(Addon_Id);
4+
const show_fullpath = GetNum(item.getAttribute("ShowFullPath"));
5+
26
AddEvent("ChangeView1", async function (Ctrl) {
3-
document.title = await Ctrl.Title + ' - ' + TITLE;
7+
if (show_fullpath) {
8+
const pid = await Ctrl.FolderItem;
9+
let fullpath;
10+
if (pid && (fullpath = await pid.Path) && fullpath.length > 0) {
11+
document.title = fullpath + ' - ' + TITLE;
12+
} else {
13+
document.title = await Ctrl.Title + ' - ' + TITLE;
14+
}
15+
} else {
16+
document.title = await Ctrl.Title + ' - ' + TITLE;
17+
}
418
});
19+
} else {
20+
SetTabContents(0, "General", await ReadTextFile("addons\\" + Addon_Id + "\\options.html"));
521
}

Debug/script/sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ g_.arError = api.CreateObject("Array");
6969

7070
AboutTE = function (n) {
7171
if (n == 0) {
72-
return te.Version < 20250701 ? te.Version : 20250806;
72+
return te.Version < 20250701 ? te.Version : 20250907;
7373
}
7474
if (n == 1) {
7575
const v = AboutTE(0);
@@ -1022,7 +1022,7 @@ CreateFont = function (LogFont) {
10221022

10231023
GetSavePath = function (FolderItem) {
10241024
let path = api.GetDisplayNameOf(FolderItem, SHGDN_FORPARSING | SHGDN_FORPARSINGEX);
1025-
if (!/\?/.test(path) || IsSearchPath(path)) {
1025+
if (!/\?/.test(path) || IsSearchPath(path) || api.ILIsParent(1, FolderItem, false)) {
10261026
return path;
10271027
}
10281028
let nCount = api.ILGetCount(FolderItem);

0 commit comments

Comments
 (0)