Skip to content

Commit

Permalink
Enable/disable workshop button didn't refresh after options change #13
Browse files Browse the repository at this point in the history
  • Loading branch information
shusaura85 committed Apr 2, 2020
1 parent 1220d52 commit bfca3ed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion launcher-src/uMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,15 @@ procedure TNotLauncherWindow.btnOptionsClick(Sender: TObject);
// show options window
NotLauncherOptions.hasSaved := false;
NotLauncherOptions.ShowModal;
if NotLauncherOptions.hasSaved then LoadOptions;
if NotLauncherOptions.hasSaved then
begin
LoadOptions;
// refresh enable/disable steam workshop button
if option_noworkshop then btnSwitchWorkshop.Caption := LANG_ENABLE_STEAM_WORKSHOP
else btnSwitchWorkshop.Caption := LANG_DISABLE_STEAM_WORKSHOP;

if btnSwitchWorkshop.Visible then btnSwitchWorkshop.Repaint;
end;

end;

Expand Down

0 comments on commit bfca3ed

Please sign in to comment.