@@ -244,10 +244,10 @@ namespace Quilter {
244244
245245 private void setup_signals () {
246246 Quilter . Application . gsettings. changed. connect (on_settings_changed);
247- appbar. open. connect (() = > { print ( " DEBUG: open clicked \n " ); on_open (); } );
248- appbar. save. connect (() = > { print ( " DEBUG: save clicked \n " ); on_save (); } );
249- appbar. save_as. connect (() = > { print ( " DEBUG: save_as clicked \n " ); on_save_as (); } );
250- appbar. create_new. connect (() = > { print ( " DEBUG: new clicked \n " ); on_create_new (); } );
247+ appbar. open. connect (on_open);
248+ appbar. save. connect (on_save);
249+ appbar. save_as. connect (on_save_as);
250+ appbar. create_new. connect (on_create_new);
251251 appbar. preview_toggled. connect (on_preview_toggled);
252252 toggle_sidebar. connect (on_toggle_sidebar);
253253 focus_overlay_button. clicked. connect (() = > {
@@ -521,7 +521,6 @@ namespace Quilter {
521521 }
522522
523523 private void on_create_new () {
524- print (" DEBUG: on_create_new()\n " );
525524 create_new_document ();
526525 file_manager. save_open_files (this );
527526 }
@@ -543,26 +542,19 @@ namespace Quilter {
543542 }
544543
545544 private void on_open () {
546- print (" DEBUG: on_open()\n " );
547545 on_open_async. begin ((obj, res) = > {
548- try {
549- on_open_async. end (res);
550- } catch (Error e) {
551- warning (" Error in open operation: %s " , e. message);
552- }
546+ on_open_async. end (res);
553547 });
554548 }
555549
556550 private async void on_open_async () {
557- print (" DEBUG: on_open_async() start\n " );
558551 if (is_opening)return ;
559552 is_opening = true ;
560553
561554 try {
562555 var result = yield file_manager. open (this );
563-
556+
564557 if (result == null ) {
565- print (" DEBUG: open canceled or null result\n " );
566558 is_opening = false ;
567559 return ;
568560 }
@@ -593,7 +585,6 @@ namespace Quilter {
593585 }
594586
595587 private void on_save () {
596- print (" DEBUG: on_save()\n " );
597588 unowned Widgets . SideBarBox ? row = sidebar. get_selected_row ();
598589 if (row == null ) {
599590 // Fallback to current-file if no row is selected
@@ -614,7 +605,6 @@ namespace Quilter {
614605 try {
615606 // If this is a temp/unsaved file, route to Save As
616607 if (file_manager. is_temp_file (row. path)) {
617- print (" DEBUG: on_save() -> temp file, delegating to Save As\n " );
618608 on_save_as ();
619609 return ;
620610 }
@@ -632,18 +622,12 @@ namespace Quilter {
632622 }
633623
634624 private void on_save_as () {
635- print (" DEBUG: on_save_as()\n " );
636625 on_save_as_async. begin ((obj, res) = > {
637- try {
638- on_save_as_async. end (res);
639- } catch (Error e) {
640- warning (" Error in save as operation: %s " , e. message);
641- }
626+ on_save_as_async. end (res);
642627 });
643628 }
644629
645630 private async void on_save_as_async () {
646- print (" DEBUG: on_save_as_async() start\n " );
647631 unowned Widgets . SideBarBox ? row = sidebar. get_selected_row ();
648632 if (row == null ) {
649633 // Fallback to current-file if no row is selected
@@ -665,7 +649,6 @@ namespace Quilter {
665649 string new_path = yield file_manager. save_as (edit_view_content. text, this );
666650
667651 if (new_path != " " ) {
668- print (" DEBUG: save_as -> new path: %s\n " , new_path);
669652 edit_view_content. modified = false ;
670653 update_samenu_title (new_path);
671654 row. path = new_path;
0 commit comments