Revert "fix: auto-detect KDE/Plasma and switch to X11 as backend to fix titlebar button freeze (#4523)"

This reverts commit d58c0a7df5.
This commit is contained in:
Tunglies
2025-09-06 11:58:52 +08:00
parent feb3dfbe86
commit f70b8b1213
2 changed files with 10 additions and 11 deletions

View File

@@ -76,15 +76,15 @@ function getLatestTauriCommit() {
function generateShortTimestamp(withCommit = false) {
const now = new Date();
const formatter = new Intl.DateTimeFormat('en-CA', {
timeZone: 'Asia/Shanghai',
month: '2-digit',
day: '2-digit'
const formatter = new Intl.DateTimeFormat("en-CA", {
timeZone: "Asia/Shanghai",
month: "2-digit",
day: "2-digit",
});
const parts = formatter.formatToParts(now);
const month = parts.find(part => part.type === 'month').value;
const day = parts.find(part => part.type === 'day').value;
const month = parts.find((part) => part.type === "month").value;
const day = parts.find((part) => part.type === "day").value;
if (withCommit) {
const gitShort = getGitShortCommit();