Skip to content

Commit

Permalink
Always save serializer preferences when running the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wrCisco committed Sep 7, 2019
1 parent c41d0e9 commit 6e39ca9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ def save_and_go(self, bk):
self.prefs['linesAfterRules'] = 1 * '\n' \
if self.linesAfterRules.get() == 1 \
else 0 * '\n'
set_css_output_prefs(bk, self.prefs)
self.destroy()


Expand Down Expand Up @@ -263,7 +262,7 @@ def parse_errors(self, bk, css_to_skip=None, css_to_parse=None, css_warnings=Non
self.msg.set(par_msg)

def prefs_dlg(self, bk, prefs):
self.set_pref = PrefsDialog(self, bk, prefs)
PrefsDialog(self, bk, prefs)

def get_initial_values(self, prefs):
if prefs['parseAllXMLFiles']:
Expand All @@ -276,10 +275,7 @@ def proceed(self, bk, prefs):
prefs['parseAllXMLFiles'] = True
else:
prefs['parseAllXMLFiles'] = False
try:
self.set_pref
except AttributeError:
set_css_output_prefs(bk, prefs, False)
set_css_output_prefs(bk, prefs)
bk.savePrefs(prefs)
InfoDialog.stop_plugin = False
self.destroy()
Expand Down

0 comments on commit 6e39ca9

Please sign in to comment.