mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3939] [MERGED] fix(desktop): set window caption color if Windows version >= 11 #4606
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4606
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3939
Author: @Timic3
Created: 3/27/2024
Status: ✅ Merged
Merged: 4/16/2024
Merged by: @AndrewBastin
Base:
release/2024.3.1← Head:fix/desktop-win10-crash📝 Commits (2)
8deffb3fix(desktop): set window caption color if Windows version >= 1154db943chore(desktop): use winver crate to detect Windows version📊 Changes
3 files changed (+29 additions, -9 deletions)
View changed files
📝
packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.lock(+10 -0)📝
packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.toml(+1 -0)📝
packages/hoppscotch-selfhost-desktop/src-tauri/src/win/window.rs(+18 -9)📄 Description
Closes #3524
Description
This pull request fixes Windows 10 crash when application is opened. It happened due to
DWMWA_CAPTION_COLORbeing available only on Windows 11 (build number 22000) and up (see here). This is fixed by checking Windows version number and build, however it is also fixable by just catching the error, but it's probably best not to fill Windows event log with errors.Checks
Additional Information
I haven't tested this on Windows 11 yet, however feel free to test it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.