Compare commits

..

1 Commits

Author SHA1 Message Date
chen08209
755c66e5b0 Add sqlite store
Optimize android quick action

Optimize backup and restore

Optimize more details
2026-01-24 22:47:10 +08:00
3 changed files with 10 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ func handleValidateConfig(path string) string {
func handleGetProxies() ProxiesData {
runLock.Lock()
defer runLock.Unlock()
var all = []string{"GLOBAL"}
var all []string
all = append(all, config.ProxyList...)
proxies := make(map[string]constant.Proxy)
for name, proxy := range tunnel.Proxies() {
@@ -112,6 +112,10 @@ func handleGetProxies() ProxiesData {
}
}
if !slices.Contains(all, "GLOBAL") {
all = append([]string{"GLOBAL"}, all...)
}
types := []constant.AdapterType{
constant.Selector, constant.URLTest, constant.Fallback, constant.Relay, constant.LoadBalance,
}

View File

@@ -576,14 +576,14 @@ Future<MigrationData> _restoreTask(RootIsolateToken token) async {
final scripts = results[1].cast<Script>();
final profilesMigration = profiles.map(
(item) => VM2(
_getProfilePath(restoreDirPath, item.fileName),
_getProfilePath(homeDirPath, item.fileName),
_getProfilePath(restoreDirPath, item.id.toString()),
_getProfilePath(homeDirPath, item.id.toString()),
),
);
final scriptsMigration = scripts.map(
(item) => VM2(
_getScriptPath(restoreDirPath, item.fileName),
_getScriptPath(homeDirPath, item.fileName),
_getScriptPath(restoreDirPath, item.id.toString()),
_getScriptPath(homeDirPath, item.id.toString()),
),
);
await _copyWithMapList([...profilesMigration, ...scriptsMigration]);

View File

@@ -1,7 +1,7 @@
name: fl_clash
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
publish_to: 'none'
version: 0.8.92+2026012403
version: 0.8.92+2026012404
environment:
sdk: '>=3.8.0 <4.0.0'