mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Merge pull request #2271 from Ultimaker/thopiekar-plugin-browser-send-more-info
PluginBrowser: Send also OS and architecture
This commit is contained in:
commit
6c280fff9a
1 changed files with 10 additions and 2 deletions
|
@ -15,6 +15,7 @@ from PyQt5.QtQml import QQmlComponent, QQmlContext
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import platform
|
||||||
|
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
@ -43,7 +44,14 @@ class PluginBrowser(QObject, Extension):
|
||||||
|
|
||||||
self._is_downloading = False
|
self._is_downloading = False
|
||||||
|
|
||||||
self._request_header = [b"User-Agent", str.encode("%s - %s" % (Application.getInstance().getApplicationName(), Application.getInstance().getVersion()))]
|
self._request_header = [b"User-Agent",
|
||||||
|
str.encode("%s\%s (%s %s)" % (Application.getInstance().getApplicationName(),
|
||||||
|
Application.getInstance().getVersion(),
|
||||||
|
platform.system(),
|
||||||
|
platform.machine(),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
# Installed plugins are really installed after reboot. In order to prevent the user from downloading the
|
# Installed plugins are really installed after reboot. In order to prevent the user from downloading the
|
||||||
# same file over and over again, we keep track of the upgraded plugins.
|
# same file over and over again, we keep track of the upgraded plugins.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue