Skip to content

Commit aa3cb72

Browse files
committed
Fixed a bug in detect default config.
1 parent ea67d19 commit aa3cb72

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ultrawide-window-positioner"
3-
version = "1.0.3.0"
3+
version = "1.0.3.1"
44
description = "Application to manage window position, size and always-on-top status."
55
readme = "README.md"
66
requires-python = ">=3.12"

src/config_manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ def detect_default_config(self)->list:
178178
if match_titles(section, title):
179179
full_match = c_names[c_files.index(file)]
180180

181-
if match_titles(section, title):
182-
matching_windows += 1
181+
for section in config.sections():
182+
for title in all_titles:
183+
if match_titles(section, title):
184+
matching_windows += 1
183185

184186
if matching_windows > highest_matching_windows[1]:
185187
highest_matching_windows[0] = (

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_version() -> str:
124124
if match:
125125
major, minor, patch, build = match.groups()
126126
# Ignore the build number, format as X.Y.Z
127-
return f"{major}.{minor}.{patch}"
127+
return f"{major}.{minor}.{patch}.{build}"
128128
except (OSError, AttributeError):
129129
pass
130130

version.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ VSVersionInfo(
66
ffi=FixedFileInfo(
77
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
88
# Set not needed items to zero 0.
9-
filevers=(1, 0, 3, 0),
10-
prodvers=(1, 0, 3, 0),
9+
filevers=(1, 0, 3, 1),
10+
prodvers=(1, 0, 3, 1),
1111
# Contains a bitmask that specifies the valid bits 'flags'r
1212
mask=0x3f,
1313
# Contains a bitmask that specifies the Boolean attributes of the file.
@@ -31,12 +31,12 @@ VSVersionInfo(
3131
'040904B0',
3232
[StringStruct('CompanyName', ''),
3333
StringStruct('FileDescription', 'An application to manage application windows'),
34-
StringStruct('FileVersion', '1.0.3.0'),
34+
StringStruct('FileVersion', '1.0.3.1'),
3535
StringStruct('InternalName', 'Ultrawide Window Positioner'),
3636
StringStruct('LegalCopyright', ''),
3737
StringStruct('OriginalFilename', 'Ultrawide Window Positioner.Exe'),
3838
StringStruct('ProductName', 'Ultrawide Window Positioner'),
39-
StringStruct('ProductVersion', '1.0.3.0')])
39+
StringStruct('ProductVersion', '1.0.3.1')])
4040
]),
4141
VarFileInfo([VarStruct('Translation', [1033, 1200])])
4242
]

0 commit comments

Comments
 (0)