File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
aat-gtk/src/main/kotlin/ch/bailu/aat_gtk/view/preferences
aat-lib/src/main/java/ch/bailu/aat_lib/preferences/beacon Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11package ch.bailu.aat_gtk.view.preferences
22
3+ import ch.bailu.aat_gtk.view.LabelTextView
34import ch.bailu.aat_lib.app.AppContext
45import ch.bailu.aat_lib.preferences.beacon.*
56import ch.bailu.gtk.adw.PreferencesGroup
@@ -10,6 +11,7 @@ class NetworkPreferencesPage(appContext: AppContext) : PreferencesPageParent("Ne
1011 page.add(PreferencesGroup ().apply {
1112 setTitle(" Beacon" )
1213 add(SolidBooleanSwitchView (SolidBeaconEnabled (appContext.storage)).layout)
14+ add(LabelTextView (SolidBeaconEnabled .toolTip).layout)
1315 add(SolidEntryView (SolidBeaconServer (appContext.storage)).layout)
1416 add(SolidEntryView (SolidBeaconKey (appContext.storage)).layout)
1517 })
Original file line number Diff line number Diff line change @@ -2,13 +2,19 @@ package ch.bailu.aat_lib.preferences.beacon
22
33import ch.bailu.aat_lib.preferences.SolidBoolean
44import ch.bailu.aat_lib.preferences.StorageInterface
5+ import ch.bailu.aat_lib.resources.ToDo
56
67class SolidBeaconEnabled (storage : StorageInterface ) : SolidBoolean(storage, KEY ) {
78 override fun getLabel (): String {
89 return " Enabled"
910 }
1011
12+ override fun getToolTip (): String? {
13+ return toolTip
14+ }
15+
1116 companion object {
1217 const val KEY = " BEACON_ENABLED"
18+ val toolTip = ToDo .translate(" Experimental: Service for sharing live GPS locations. See https://github.com/MaxKellermann/beacon" )
1319 }
1420}
You can’t perform that action at this time.
0 commit comments