Fix: remove leading space in window title #114704

Merged
Harley Acheson merged 1 commits from RedMser/blender:title-leading-space into main 2023-11-24 18:57:21 +01:00
Contributor

At least on Windows, leading spaces in the window title are not trimmed.
So the text would have a larger distance to the icon than usual.

image

At least on Windows, leading spaces in the window title are not trimmed. So the text would have a larger distance to the icon than usual. ![image](/attachments/5cbb50b6-856d-4b50-bf99-7f268e3cb58e)
4.6 KiB
RedMser added 1 commit 2023-11-10 14:28:56 +01:00
Iliya Katushenock added this to the Platforms, Builds Tests & Devices project 2023-11-10 14:30:39 +01:00
Iliya Katushenock added the
Module
User Interface
label 2023-11-10 14:30:43 +01:00
Harley Acheson requested review from Harley Acheson 2023-11-24 17:55:27 +01:00
Member

The string is now always starting with a space character if saved, or a "*" if it has unsaved changes:

  str += wm->file_saved ? " " : "* ";

In my original PR it was

wm->file_saved ? "" : "*"

This is a change introduced in d6b2b5d0c5 and without comment about it so will assume it is a typo. Can't think of a reason to have any extra space there, and it is a very small space anyway.

The string is now always starting with a space character if saved, or a "*" if it has unsaved changes: ``` str += wm->file_saved ? " " : "* "; ``` In my original PR it was ``` wm->file_saved ? "" : "*" ``` This is a change introduced in https://projects.blender.org/blender/blender/commit/d6b2b5d0c5b414dff6da052e1ef0416b40b4992c and without comment about it so will assume it is a typo. Can't think of a reason to have any extra space there, and it is a very small space anyway.
Harley Acheson approved these changes 2023-11-24 18:55:44 +01:00
Harley Acheson left a comment
Member

Good find. Thanks!

Good find. Thanks!
Harley Acheson merged commit bf97bc634f into main 2023-11-24 18:57:21 +01:00
Harley Acheson removed this from the Platforms, Builds Tests & Devices project 2023-11-24 19:15:28 +01:00
Harley Acheson added this to the User Interface project 2023-11-24 19:15:37 +01:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#114704
No description provided.