code: def add_file_task(self, dir_name=None):
          '''添加上传任务, 会弹出一个选择文件的对话框'''
          file_dialog = Gtk.FileChooserDialog(_('Choose Files..'),
                  self.app.window, Gtk.FileChooserAction.OPEN,
                  (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
                   Gtk.STOCK_OK, Gtk.ResponseType.OK))
          file_dialog.set_modal(True)
          file_dialog.set_select_multiple(True)
          file_dialog.set_default_response(Gtk.ResponseType.OK)
          response = file_dialog.run()
          if response != Gtk.ResponseType.OK:
              file_dialog.destroy()
              return
          source_paths = file_dialog.get_filenames()
          file_dialog.destroy()
          if source_paths:
              self.upload_files(source_paths, dir_namef add_file_task(self, dir_name=None):
          '''添加上传任务, 会弹出一个选择文件的对话框'''
          file_dialog = Gtk.FileChooserDialog(_('Choose Files..'),
                  self.app.window, Gtk.FileChooserAction.OPEN,
                  (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
                   Gtk.STOCK_OK, Gtk.ResponseType.OK))
          file_dialog.set_modal(True)
          file_dialog.set_select_multiple(True)
          file_dialog.set_default_response(Gtk.ResponseType.OK)
          response = file_dialog.run()
          if response != Gtk.ResponseType.OK:
              file_dialog.destroy()
              return
          source_paths = file_dialog.get_filenames()
          file_dialog.destroy()
          if source_paths:
              self.upload_files(source_paths, dir_name)
docs: 添加上传任务, 会弹出一个选择文件的对话框