Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwad committed Oct 9, 2024
1 parent 3f9119c commit 4e28a3a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lacci/lib/shoes/drawable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,17 @@ def shoes_style_name?(name)
# not kept long, and used up when used once.

def with_current_app(app)
old_app = Thread.current[:shoes_app]
Thread.current[:shoes_app] = app
yield
ensure
Thread.current[:shoes_app] = old_app
old_cur_app = @current_app
@current_app = app
ret = yield
@current_app = old_cur_app
ret
end

def use_current_app
Thread.current[:shoes_app]
cur_app = @current_app
@current_app = nil
cur_app
end
end

Expand Down

0 comments on commit 4e28a3a

Please sign in to comment.