瀏覽代碼

Change some if/else formatting

tags/v1.0.0
Matt Baer 6 年之前
父節點
當前提交
58cfdf6045
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. +5
    -2
      src/window.vala

+ 5
- 2
src/window.vala 查看文件

@@ -327,8 +327,11 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {

var resp = file_chooser.run();
file_chooser.close();
if (resp == Gtk.ResponseType.ACCEPT) return file_chooser.get_file();
else throw new UserCancellable.USER_CANCELLED("FileChooserDialog");
if (resp == Gtk.ResponseType.ACCEPT) {
return file_chooser.get_file();
} else {
throw new UserCancellable.USER_CANCELLED("FileChooserDialog");
}
}

public void open_file(File file) throws Error {


Loading…
取消
儲存