mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	FileSystemAccessServer: Add window title as parameter for opening file
This commit is contained in:
		
							parent
							
								
									d496eb48e3
								
							
						
					
					
						commit
						95ee7069d5
					
				
					 5 changed files with 8 additions and 8 deletions
				
			
		|  | @ -107,14 +107,14 @@ void ClientConnection::request_file(i32 window_server_client_id, i32 parent_wind | |||
|     } | ||||
| } | ||||
| 
 | ||||
| void ClientConnection::prompt_open_file(i32 window_server_client_id, i32 parent_window_id, String const& path_to_view, Core::OpenMode const& requested_access) | ||||
| void ClientConnection::prompt_open_file(i32 window_server_client_id, i32 parent_window_id, String const& window_title, String const& path_to_view, Core::OpenMode const& requested_access) | ||||
| { | ||||
|     auto relevant_permissions = requested_access & (Core::OpenMode::ReadOnly | Core::OpenMode::WriteOnly); | ||||
|     VERIFY(relevant_permissions != Core::OpenMode::NotOpen); | ||||
| 
 | ||||
|     auto main_window = create_dummy_child_window(window_server_client_id, parent_window_id); | ||||
| 
 | ||||
|     auto user_picked_file = GUI::FilePicker::get_open_filepath(main_window, "Select file", path_to_view); | ||||
|     auto user_picked_file = GUI::FilePicker::get_open_filepath(main_window, window_title, path_to_view); | ||||
| 
 | ||||
|     prompt_helper(user_picked_file, requested_access); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy
						Timothy