Fixes on Date picker (empty page on open) and Ephemeral deactivation.

This commit is contained in:
Julien Wadel 2024-01-23 11:45:20 +01:00
parent f82be7731c
commit ed698c3b66
3 changed files with 7 additions and 5 deletions

View file

@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- URI handlers when no domain are provided like tel:number.
- Empty page on first date in date picker.
- Ephemeral deactivation while restarting it.
- Update SDK to 5.3.10.
### Added

View file

@ -37,7 +37,7 @@ Item{
Text { // month year
Layout.fillWidth: true
Layout.alignment: Qt.AlignCenter
horizontalAlignment: Qt.AlignCenter
horizontalAlignment: Text.AlignHCenter
text: new Date(monthList.currentYear, monthList.currentMonth-1, 15).toLocaleString(App.locale, 'MMMM yyyy')// 15 because of timezones that can change the date for localeString
color: DatePickerStyle.title.colorModel.color
font.pointSize: DatePickerStyle.title.pointSize
@ -119,8 +119,8 @@ Item{
property bool selected : text.text != '-'
&& text.text && dayIndex >= 0
&& cellDate.isEqual(monthList.selectedDate) // Do not use == as it will compare JS Date.
width: grid.cellMinSize
height: width
Layout.preferredWidth: grid.cellMinSize
Layout.preferredHeight: width
Rectangle { // index is 0 to 48
anchors.centerIn: parent

View file

@ -107,6 +107,7 @@ DialogPlus {
return 5;
else
return 5;
onCurrentIndexChanged: dialog.timer = model[currentIndex].value
model:[
//: 'Disabled'
{text:qsTr('disabled'), value:0},
@ -121,8 +122,7 @@ DialogPlus {
{ text:qsTr('nWeek', '', 1).arg(1), value:604800}
]
onActivated: dialog.timer = model[index].value
visible: chatRoomModel.canBeEphemeral
}
}
}
}