Persistant Desktop settings #11
Reference in New Issue
Block a user
Delete Branch "swarfield/desktop-settings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request implements persistent settings for the desktop client! I used the
etceteralibrary to automatically create config paths that should work on all major os'es. For example, on linux~/.config/mumble-web2/config.jsonis usedAlso added vscode settings for rust analyzer.
@@ -323,3 +362,4 @@}pub async fn load_config() -> color_eyre::Result<ClientConfig> {let config = load_config_map();Load config should not change, because this is (confusingly) the server->client config, not really the user's own config. TBH we should rename it to "server_params" or something, but probably not in this PR.
Anyway, we should instead plumb the remembered last-used server address to the initial value of address_input of LoginView. That is, use it to pre-fill the field.
6702c56f6ctof2474591cb