Переглянути джерело

Open markdown editor half-and-half

Billy Barrow 1 рік тому
батько
коміт
9c76d91d92
2 змінених файлів з 3 додано та 5 видалено
  1. 2 0
      src/Editors/MarkdownEditor.vala
  2. 1 5
      src/PublishWindow.vala

+ 2 - 0
src/Editors/MarkdownEditor.vala

@@ -117,6 +117,8 @@ namespace Publicate.Editors {
 
             text_view.buffer.set_text ((string)text, text.length);
             set_tab_name(false);
+
+            leaflet.position = leaflet.get_width() / 2;
         }
 
         public void save_asset(Ppub.Builder builder) {

+ 1 - 5
src/PublishWindow.vala

@@ -223,8 +223,6 @@ namespace Publicate {
         private bool unpublish = false;
         private DateTime? old_publish_timestamp = null;
         public async void publish_to(CollectionConfig config, File publication_file) {
-            // TODO wrap in try catch
-
             this.config = config;
             this.publication_file = publication_file;
             dest_name = publication_file.get_basename();
@@ -281,9 +279,7 @@ namespace Publicate {
             header_bar.show_end_title_buttons = true;
         }
 
-        private async void publish_with(bool overwrite) {
-            // TODO wrap in try catch
-            
+        private async void publish_with(bool overwrite) {            
             header_bar.show_end_title_buttons = false;
             stack.visible_child = loader;