Method: Watobo::Gui::MainWindow#open_manual_request_editor
- Defined in:
- lib/watobo/gui/main_window.rb
#open_manual_request_editor(chat) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/watobo/gui/main_window.rb', line 20 def open_manual_request_editor(chat) begin mrtk = ManualRequestEditor.new(FXApp.instance, @project, chat) mrtk.create mrtk.subscribe(:show_browser_preview) { |request, response| openBrowser(request, response) } mrtk.subscribe(:new_chat) { |c| Watobo::Chats.add c } mrtk.show(Fox::PLACEMENT_SCREEN) rescue => bang puts "!!! could not open manual request" puts bang end end |