mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix "duplicate bookmark" dialog
This commit is contained in:
parent
10e4e5e3a7
commit
edc50f102d
2 changed files with 19 additions and 3 deletions
|
@ -84,7 +84,7 @@ ModalWindow {
|
|||
|
||||
RalewaySemibold {
|
||||
id: mainTextContainer
|
||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
||||
onTextChanged: d.resize();
|
||||
wrapMode: Text.WordWrap
|
||||
size: hifi.fontSizes.menuItem
|
||||
color: hifi.colors.baseGrayHighlight
|
||||
|
@ -100,7 +100,7 @@ ModalWindow {
|
|||
|
||||
RalewaySemibold {
|
||||
id: informativeTextContainer
|
||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
||||
onTextChanged: d.resize();
|
||||
wrapMode: Text.WordWrap
|
||||
size: hifi.fontSizes.menuItem
|
||||
color: hifi.colors.baseGrayHighlight
|
||||
|
@ -194,7 +194,10 @@ ModalWindow {
|
|||
}
|
||||
]
|
||||
|
||||
Component.onCompleted: updateIcon()
|
||||
Component.onCompleted: {
|
||||
updateIcon();
|
||||
d.resize();
|
||||
}
|
||||
onStateChanged: d.resize()
|
||||
}
|
||||
|
||||
|
|
|
@ -161,6 +161,19 @@ ApplicationWindow {
|
|||
});
|
||||
}
|
||||
}
|
||||
Button {
|
||||
text: "Duplicate Bookmark"
|
||||
onClicked: {
|
||||
desktop.messageBox({
|
||||
title: "Duplicate Bookmark",
|
||||
icon: hifi.icons.warning,
|
||||
text: "The bookmark name you entered alread exists in yoru list.",
|
||||
informativeText: "Would you like to overwrite it?",
|
||||
buttons: OriginalDialogs.StandardButton.Yes + OriginalDialogs.StandardButton.No,
|
||||
defaultButton: OriginalDialogs.StandardButton.Yes
|
||||
});
|
||||
}
|
||||
}
|
||||
/*
|
||||
// There is no such desktop.queryBox() function; may need to update test to cover QueryDialog.qml?
|
||||
Button {
|
||||
|
|
Loading…
Reference in a new issue