implement settings, fix bugs and enhance ui

- Added new settings keys in SettingsManager for download path, auto-check updates, auto-raise window, switch to new device, unmount iFuse on exit, theme, and connection timeout.
- Implemented methods to get and set these new settings.
- Updated SettingsWidget to include UI elements for the new settings, including checkboxes and a combo box for theme selection.
- Refactored loadSettings and saveSettings methods to handle new settings.
- Removed deprecated settings UI elements to streamline the interface.
- Introduced VirtualLocation widget for managing virtual location settings with a map interface.
- Integrated QML for map visualization and input handling for latitude and longitude.
- Added functionality to apply virtual location settings to the connected device.
This commit is contained in:
uncor3
2025-10-17 06:56:02 +00:00
parent 0c23824a4e
commit 8d7b027992
55 changed files with 3602 additions and 1919 deletions
+7 -1
View File
@@ -3,6 +3,7 @@
#include "devicemenuwidget.h"
#include "devicependingwidget.h"
#include "recoverydeviceinfowidget.h"
#include "settingsmanager.h"
#include <QDebug>
DeviceManagerWidget::DeviceManagerWidget(QWidget *parent)
@@ -13,7 +14,12 @@ DeviceManagerWidget::DeviceManagerWidget(QWidget *parent)
connect(AppContext::sharedInstance(), &AppContext::deviceAdded, this,
[this](iDescriptorDevice *device) {
addDevice(device);
setCurrentDevice(device->udid);
// Apply settings-based behavior for switching to new device
SettingsManager::sharedInstance()->doIfEnabled(
SettingsManager::Setting::SwitchToNewDevice,
[this, device]() { setCurrentDevice(device->udid); });
emit updateNoDevicesConnected();
});