Skip to content

Commit

Permalink
Add Windows specific fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
novhack committed Mar 22, 2021
1 parent 19cf1bf commit a148a0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Autoload/Palettes.gd
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ func load_palettes() -> void:
# Makes a copy of the palette
save_palette(palette)
palette.resource_name = palette.resource_path.get_file().trim_suffix(".tres")
# On Windows for some reason paths can contain "res://" in front of them which breaks saving
palette.resource_path = palette.resource_path.trim_prefix("res://")
palettes[palette.resource_path] = palette

# Store index of the default palette
Expand Down
3 changes: 3 additions & 0 deletions src/Preferences/HandleThemes.gd
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ func change_theme(ID : int) -> void:
Global.current_project.current_frame = Global.current_project.current_frame

Global.preferences_dialog.get_node("Popups/ShortcutSelector").theme = main_theme

# Sets disabled theme color on palette swatches
Global.palette_panel.reset_empty_palette_swatches_color()

0 comments on commit a148a0f

Please sign in to comment.