Skip to content

Commit 673fcaa

Browse files
committed
ui: show a message when selecting a subdirectory for synchronization
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 1f56b94 commit 673fcaa

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

Localizable.xcstrings

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43540,6 +43540,52 @@
4354043540
}
4354143541
}
4354243542
},
43543+
"You have selected a subdirectory for synchronisation. All files contained in this subdirectory will be synchronized, including new files. If you delete files from this subdirectory, the deletion will propagate to other devices." : {
43544+
"localizations" : {
43545+
"de" : {
43546+
"stringUnit" : {
43547+
"state" : "translated",
43548+
"value" : "Sie haben ein Unterverzeichnis zur Synchronisation ausgewählt. Alle Dateien in diesem Unterverzeichnis werden synchronisiert, einschließlich neuer Dateien. Wenn Sie Dateien aus diesem Unterverzeichnis löschen, wird die Löschung auf andere Geräte übertragen."
43549+
}
43550+
},
43551+
"es" : {
43552+
"stringUnit" : {
43553+
"state" : "translated",
43554+
"value" : "Has seleccionado un subdirectorio para la sincronización. Todos los archivos contenidos en este subdirectorio serán sincronizados, incluidos los archivos nuevos. Si eliminas archivos de este subdirectorio, la eliminación se propagará a otros dispositivos."
43555+
}
43556+
},
43557+
"it" : {
43558+
"stringUnit" : {
43559+
"state" : "translated",
43560+
"value" : "Hai selezionato una sottodirectory per la sincronizzazione. Tutti i file contenuti in questa sottodirectory verranno sincronizzati, inclusi i nuovi file. Se elimini file da questa sottodirectory, l'eliminazione si propagherà agli altri dispositivi."
43561+
}
43562+
},
43563+
"ja" : {
43564+
"stringUnit" : {
43565+
"state" : "translated",
43566+
"value" : "同期するサブディレクトリを選択しました。このサブディレクトリ内のすべてのファイルは同期され、新しいファイルも含まれます。このサブディレクトリからファイルを削除すると、削除は他のデバイスにも反映されます。"
43567+
}
43568+
},
43569+
"nl" : {
43570+
"stringUnit" : {
43571+
"state" : "translated",
43572+
"value" : "Je hebt een submap geselecteerd voor synchronisatie. Alle bestanden in deze submap worden gesynchroniseerd, inclusief nieuwe bestanden. Als je bestanden uit deze submap verwijdert, zal de verwijdering zich naar andere apparaten verspreiden."
43573+
}
43574+
},
43575+
"uk" : {
43576+
"stringUnit" : {
43577+
"state" : "translated",
43578+
"value" : "Ви обрали підкаталог для синхронізації. Усі файли, що містяться в цьому підкаталозі, будуть синхронізовані, включаючи нові файли. Якщо ви видалите файли з цього підкаталогу, видалення пошириться на інші пристрої."
43579+
}
43580+
},
43581+
"zh-Hans" : {
43582+
"stringUnit" : {
43583+
"state" : "translated",
43584+
"value" : "您已选择一个子目录进行同步。此子目录中包含的所有文件都将被同步,包括新文件。如果您从此子目录中删除文件,删除操作将传播到其他设备。"
43585+
}
43586+
}
43587+
}
43588+
},
4354343589
"Your devices, your data, your responsibility" : {
4354443590
"localizations" : {
4354543591
"de" : {

Sushitrain/App.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct SushitrainApp: App {
3131
@Environment(\.openWindow) private var openWindow
3232
@AppStorage("hideInDock") var hideInDock: Bool = false
3333
#endif
34-
34+
3535
@Environment(\.refresh) private var refreshAction: RefreshAction?
3636

3737
init() {
@@ -263,7 +263,7 @@ struct SushitrainApp: App {
263263

264264
Toggle("Hide hidden folders", isOn: appState.userSettings.$hideHiddenFolders)
265265
.keyboardShortcut("P", modifiers: [.command, .shift])
266-
266+
267267
Button("Refresh", systemImage: "arrow.clockwise") {
268268
Task {
269269
await refreshAction?()

Sushitrain/BrowserView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,9 @@ struct ItemSelectToggleView: View {
14291429
// We can't use our own alert since by the time we get here, the context menu is gone
14301430
appState.alert(message: em)
14311431
}
1432+
else if s && self.file.isDirectory() {
1433+
appState.alert(message: String(localized: "You have selected a subdirectory for synchronisation. All files contained in this subdirectory will be synchronized, including new files. If you delete files from this subdirectory, the deletion will propagate to other devices."))
1434+
}
14321435
}
14331436
})
14341437
)

0 commit comments

Comments
 (0)