Skip to content

Commit

Permalink
fix(oomox_plugin): detail remove_preset_name_from_path_config from th…
Browse files Browse the repository at this point in the history
…e base class
  • Loading branch information
actionless committed Jul 12, 2024
1 parent cc46df9 commit 4e5bb4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion oomox_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def _get_app_variant_template_path(self) -> str:
self.current_app.template_dir, self.current_variant + ".mustache",
)

def save_last_export_path(self) -> None:
def remove_preset_name_from_path_config(self) -> None:
super().remove_preset_name_from_path_config()

export_path = os.path.expanduser(
self.option_widgets[self.OPTIONS.DEFAULT_PATH].get_text(), # type: ignore[attr-defined]
)
Expand All @@ -260,6 +262,9 @@ def save_last_export_path(self) -> None:
self.export_config[self.OPTIONS.DEFAULT_PATH] = \
self.export_config[default_path_config_name] = \
new_destination_dir

def save_last_export_path(self) -> None:
self.remove_preset_name_from_path_config()
self.export_config.save()

def do_export(self) -> None:
Expand Down

0 comments on commit 4e5bb4a

Please sign in to comment.