Fix RNS initialization and logging setup
- Moved RNS initialization and logging setup to the main application to ensure proper logging capture before RNS is used. - Updated AnnounceService and PageFetcher to remove redundant RNS initialization, assuming it is handled in the main app. - Enhanced settings interface with a refresh button for better user experience and updated error and Reticulum log displays.
This commit is contained in:
@@ -74,7 +74,7 @@ class StorageManager:
|
||||
return pathlib.Path(RNS_CONFIG_DIR)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
# Default to standard RNS config directory
|
||||
return pathlib.Path.home() / ".reticulum"
|
||||
|
||||
@@ -96,7 +96,7 @@ class StorageManager:
|
||||
reticulum_config_path = self.get_reticulum_config_path() / "config"
|
||||
reticulum_config_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
reticulum_config_path.write_text(config_content, encoding="utf-8")
|
||||
|
||||
|
||||
# Also save to local config path as backup
|
||||
config_path = self.get_config_path()
|
||||
config_path.write_text(config_content, encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user