Skip to content

Commit

Permalink
Fix bug when reading from the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuhrmann committed Apr 23, 2020
1 parent da0ec79 commit 79d1ce9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ To execute your customized workflows select "Custom workflow" action, press TAB

## Change Log

### v1.0.2
* Fix bug when reading from settings

### v1.0.1
* Added plugin's icon

Expand Down
4 changes: 2 additions & 2 deletions src/sharex.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def on_events(self, flags):
# Read the configuration file and set some variables
def read_config(self):
settings = self.load_settings()
self.sharex_path = settings.get("path", section="main", fallback=self.DEFAULT_SHAREX_PATH)
self.sharex_path = settings.get_stripped("path", section="main", fallback=self.DEFAULT_SHAREX_PATH)

if not self.file_exists("{}\{}".format(self.sharex_path, self.SHAREX_EXE)):
self.err("Could not find ShareX executable in the provided path: ", self.sharex_path)

self.sharex_userpath = settings.get("user_path", section="main", fallback=self.DEFAULT_SHAREXUSER_PATH)
self.sharex_userpath = settings.get_stripped("user_path", section="main", fallback=self.DEFAULT_SHAREXUSER_PATH)

# Initialize all the possible suggestions the user can select
def initialize_suggestions(self):
Expand Down

0 comments on commit 79d1ce9

Please sign in to comment.