File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,9 @@ namespace Scratch {
175175
176176 var provider = new Gtk .CssProvider ();
177177 provider. load_from_resource (" io/elementary/code/Application.css" );
178- Gtk . StyleContext . add_provider_for_screen (Gdk . Screen . get_default (), provider, Gtk . STYLE_PROVIDER_PRIORITY_APPLICATION );
178+ Gtk . StyleContext . add_provider_for_screen (
179+ Gdk . Screen . get_default (), provider, Gtk . STYLE_PROVIDER_PRIORITY_APPLICATION
180+ );
179181
180182 Hdy . init ();
181183 }
@@ -562,21 +564,6 @@ namespace Scratch {
562564 document_view. close_document (doc);
563565 }
564566
565- public bool has_temporary_files () {
566- try {
567- var enumerator = File . new_for_path (app. data_home_folder_unsaved). enumerate_children (FileAttribute . STANDARD_NAME , 0 , null );
568- for (var fileinfo = enumerator. next_file (null ); fileinfo != null ; fileinfo = enumerator. next_file (null )) {
569- if (! fileinfo. get_name (). has_suffix (" ~" )) {
570- return true ;
571- }
572- }
573- } catch (Error e) {
574- critical (e. message);
575- }
576-
577- return false ;
578- }
579-
580567 // Check if there no unsaved changes
581568 private bool check_unsaved_changes () {
582569 document_view. is_closing = true ;
You can’t perform that action at this time.
0 commit comments