From e861e941917f186478a82b980315c698fd8bb715 Mon Sep 17 00:00:00 2001 From: redatman Date: Wed, 7 Aug 2024 07:50:32 +0800 Subject: [PATCH 1/2] Fix: Prevent Simplenote sync times from being None Ensures that the Simplenote sync times are always an integer by initializing it to 0 if it is not already. This prevents potential errors and ensures proper functionality of the sync process. --- commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.py b/commands.py index 95b880b..245cc00 100644 --- a/commands.py +++ b/commands.py @@ -252,6 +252,7 @@ def callback(self, updated_notes: List[Note]): sync_times = global_storage.get(CONFIG.SIMPLENOTE_SYNC_TIMES_KEY) if not isinstance(sync_times, int): global_storage.optimistic_update(CONFIG.SIMPLENOTE_SYNC_TIMES_KEY, 0) + sync_times = 0 # raise TypeError( # "Value of %s must be type %s, got %s" % (CONFIG.SIMPLENOTE_SYNC_TIMES_KEY, int, type(sync_times)) # ) From c07582cc061cc9b7739efdbe317af059bbbb68a6 Mon Sep 17 00:00:00 2001 From: redatman Date: Wed, 7 Aug 2024 07:50:52 +0800 Subject: [PATCH 2/2] docs: Update installation instructions for clarity Updated the installation instructions to include more explicit steps and ensure accurate package settings navigation. The new instructions explicitly direct users to "Settings > Package Settings > Simplenote > Settings" for configuring their Simplenote account. This will prevent confusion and improve the user experience. --- messages/install.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/messages/install.txt b/messages/install.txt index 4b85c3d..ff61b46 100644 --- a/messages/install.txt +++ b/messages/install.txt @@ -12,7 +12,7 @@ Sublime Text 3 & 4 plugin of Simplenote, Use Sublime Text as a Simplenote client First time use, To configure your Simplenote account username and password in the settings file, follow these general steps: -1. **Open the Settings File:**: Sublime Text > Settings > Package Control > Simplenote > Settings +1. **Open the Settings File:**: Settings > Package Settings > Simplenote > Settings 2. **Configure Username and Password** - Look for the configuration section and add or modify your username and password. For example, if the configuration file is in JSON format, you might add the following content: @@ -27,4 +27,6 @@ First time use, To configure your Simplenote account username and password in th 3. **Save the File** 4. **Restart the Application** - - Sometimes you need to restart Simplenote or the related application for the new settings to take effect. + - Sometimes you need to restart `Sublime text` for the new settings to take effect. + +> For more information, please refer to: Settings > Package Settings > Simplenote > README