Skip to content

Commit ae6293c

Browse files
committed
fix: do not add floating buttons twice
1 parent 309c596 commit ae6293c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

base/src/main/java/io/github/sds100/keymapper/base/keymaps/ConfigKeyMapViewModel.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,8 @@ class ConfigKeyMapViewModel @Inject constructor(
5757
}
5858
}
5959

60-
fun loadNewKeyMap(floatingButtonUid: String? = null, groupUid: String?) {
60+
fun loadNewKeyMap(groupUid: String?) {
6161
configKeyMapState.loadNewKeyMap(groupUid)
62-
if (floatingButtonUid != null) {
63-
viewModelScope.launch {
64-
configTrigger.addFloatingButtonTriggerKey(floatingButtonUid)
65-
}
66-
}
6762
}
6863

6964
fun loadKeyMap(uid: String) {

base/src/main/java/io/github/sds100/keymapper/base/utils/navigation/NavDestination.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ abstract class NavDestination<R>(val isCompose: Boolean = false) {
152152
@Serializable
153153
data class NewKeyMap(
154154
val groupUid: String?,
155-
val floatingButtonToUse: String? = null,
156155
/**
157156
* The trigger shortcut to immediately launch
158157
* when navigating to the screen to create a key map.

0 commit comments

Comments
 (0)