mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 08:05:16 +08:00
Merge branch '4.9' into CURA-8154_Fix_sizing_of_Whats_New_pages
This commit is contained in:
commit
5d18f697a3
@ -18,6 +18,9 @@ if Platform.isWindows() and hasattr(sys, "frozen"):
|
||||
import win32timezone
|
||||
from keyring.backends.Windows import WinVaultKeyring
|
||||
keyring.set_keyring(WinVaultKeyring())
|
||||
if Platform.isOSX() and hasattr(sys, "frozen"):
|
||||
from keyring.backends.macOS import Keyring
|
||||
keyring.set_keyring(Keyring())
|
||||
|
||||
# Even if errors happen, we don't want this stored locally:
|
||||
DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"]
|
||||
|
@ -287,7 +287,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
||||
firmware_version = Version([version_number[0], version_number[1], version_number[2]])
|
||||
return firmware_version >= self.PRINT_JOB_ACTIONS_MIN_VERSION
|
||||
|
||||
@pyqtProperty(bool)
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def supportsPrintJobQueue(self) -> bool:
|
||||
"""Gets whether the printer supports a queue"""
|
||||
|
||||
|
@ -2,10 +2,12 @@
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
import QtQuick.Controls 2.3
|
||||
import QtQuick.Controls 1.1
|
||||
import QtQuick.Layouts 1.1
|
||||
import QtQuick.Controls.Styles 1.1
|
||||
|
||||
import QtQuick.Controls 2.3 as NewControls
|
||||
|
||||
import UM 1.1 as UM
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
@ -139,6 +141,7 @@ UM.PreferencesPage
|
||||
{
|
||||
id: interfaceGrid
|
||||
columns: 4
|
||||
width: parent.width
|
||||
|
||||
Label
|
||||
{
|
||||
@ -178,12 +181,13 @@ UM.PreferencesPage
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox
|
||||
NewControls.ComboBox
|
||||
{
|
||||
id: languageComboBox
|
||||
|
||||
textRole: "text"
|
||||
model: languageList
|
||||
Layout.fillWidth: true
|
||||
|
||||
currentIndex:
|
||||
{
|
||||
@ -197,20 +201,6 @@ UM.PreferencesPage
|
||||
}
|
||||
}
|
||||
onActivated: UM.Preferences.setValue("general/language", model.get(index).code)
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
// Because ListModel is stupid and does not allow using qsTr() for values.
|
||||
for(var i = 0; i < languageList.count; ++i)
|
||||
{
|
||||
languageList.setProperty(i, "text", catalog.i18n(languageList.get(i).text));
|
||||
}
|
||||
|
||||
// Glorious hack time. ComboBox does not update the text properly after changing the
|
||||
// model. So change the indices around to force it to update.
|
||||
currentIndex += 1;
|
||||
currentIndex -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
Label
|
||||
@ -245,12 +235,13 @@ UM.PreferencesPage
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox
|
||||
NewControls.ComboBox
|
||||
{
|
||||
id: themeComboBox
|
||||
|
||||
model: themeList
|
||||
textRole: "text"
|
||||
Layout.fillWidth: true
|
||||
|
||||
currentIndex:
|
||||
{
|
||||
@ -265,21 +256,6 @@ UM.PreferencesPage
|
||||
return 0;
|
||||
}
|
||||
onActivated: UM.Preferences.setValue("general/theme", model.get(index).code)
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
// Because ListModel is stupid and does not allow using qsTr() for values.
|
||||
for(var i = 0; i < themeList.count; ++i)
|
||||
{
|
||||
themeList.setProperty(i, "text", catalog.i18n(themeList.get(i).text));
|
||||
}
|
||||
|
||||
// Glorious hack time. ComboBox does not update the text properly after changing the
|
||||
// model. So change the indices around to force it to update.
|
||||
currentIndex += 1;
|
||||
currentIndex -= 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -535,7 +511,7 @@ UM.PreferencesPage
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox
|
||||
NewControls.ComboBox
|
||||
{
|
||||
id: cameraComboBox
|
||||
|
||||
@ -676,10 +652,10 @@ UM.PreferencesPage
|
||||
text: catalog.i18nc("@window:text", "Default behavior when opening a project file: ")
|
||||
}
|
||||
|
||||
ComboBox
|
||||
NewControls.ComboBox
|
||||
{
|
||||
id: choiceOnOpenProjectDropDownButton
|
||||
width: 200 * screenScaleFactor
|
||||
width: Math.round(250 * screenScaleFactor)
|
||||
|
||||
model: ListModel
|
||||
{
|
||||
@ -743,11 +719,11 @@ UM.PreferencesPage
|
||||
text: catalog.i18nc("@window:text", "Default behavior for changed setting values when switching to a different profile: ")
|
||||
}
|
||||
|
||||
ComboBox
|
||||
NewControls.ComboBox
|
||||
{
|
||||
id: choiceOnProfileOverrideDropDownButton
|
||||
width: 200 * screenScaleFactor
|
||||
|
||||
width: Math.round(250 * screenScaleFactor)
|
||||
popup.width: Math.round(350 * screenScaleFactor)
|
||||
model: ListModel
|
||||
{
|
||||
id: discardOrKeepProfileListModel
|
||||
|
@ -383,7 +383,7 @@ Item
|
||||
animateContentY.to = contents.contentY;
|
||||
animateContentY.running = true;
|
||||
}
|
||||
function onSetActiveFocusToNextSetting()
|
||||
function onSetActiveFocusToNextSetting(forward)
|
||||
{
|
||||
if (forward == undefined || forward)
|
||||
{
|
||||
|
@ -14,8 +14,8 @@ variant = 0.6 mm
|
||||
[values]
|
||||
adhesion_type = brim
|
||||
brim_line_count = 20
|
||||
cool_fan_speed = 60
|
||||
cool_fan_speed_min = =cool_fan_speed * 35 / 60
|
||||
cool_fan_speed = 80
|
||||
cool_fan_speed_min = =cool_fan_speed
|
||||
cool_min_speed = 15
|
||||
infill_sparse_density = 10
|
||||
layer_0_z_overlap = 0.12
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user