~teejee2008/timeshift/trunk

« back to all changes in this revision

Viewing changes to src/MainWindow.vala

  • Committer: Tony George
  • Date: 2013-10-24 15:11:55 UTC
  • Revision ID: teejee2008@gmail.com-20131024151155-3phu9mo26k2oflxq
Improved detection of disk partitions

Show diffs side-by-side

added added

removed removed

Lines of Context:
438
438
        
439
439
        snapshot_device_original = App.snapshot_device;
440
440
        
441
 
        if (App.is_live_system()){
 
441
        if (App.live_system()){
442
442
                        btn_backup.sensitive = false;
443
443
                        btn_settings.sensitive = false;
444
444
                        btn_view_app_logs.sensitive = false;
455
455
                
456
456
                update_ui(false);
457
457
                
458
 
                if (App.is_live_system()){
 
458
                if (App.live_system()){
459
459
                        statusbar_message(_("Checking backup device..."));
460
460
                }
461
461
                else{
575
575
                                
576
576
                        case -1:
577
577
                                string msg = _("The backup device is not set or unavailable.") + "\n";
578
 
                                msg += _("Scheduled snapshots will be disabled.");
 
578
                                msg += _("Scheduled snapshots will be disabled.") + "\n";
579
579
                                msg += _("Do you want to select another device?");
580
580
 
581
581
                                var dialog = new Gtk.MessageDialog.with_markup(null, Gtk.DialogFlags.MODAL, Gtk.MessageType.INFO, Gtk.ButtonsType.OK_CANCEL, msg);
958
958
                
959
959
                //take a snapshot if current system is being restored -----------------
960
960
                
961
 
                if (!App.is_live_system() && (App.restore_target.device == App.root_device.device) && (App.restore_target.uuid == App.root_device.uuid)){
 
961
                if (!App.live_system() && (App.restore_target.device == App.root_device.device) && (App.restore_target.uuid == App.root_device.uuid)){
962
962
 
963
963
                        string msg = _("Do you want to take a snapshot of the current system before restoring the selected snapshot?");
964
964
                        
1258
1258
                
1259
1259
                //status - scheduled snapshots -----------
1260
1260
                
1261
 
                if (App.is_live_system()){
 
1261
                if (App.live_system()){
1262
1262
                        img_status_scheduled.file = img_dot_green;
1263
1263
                        lbl_status_scheduled.label = _("Running from Live CD/USB");
1264
1264
                        lbl_status_scheduled.set_tooltip_text(_("TimeShift is running in a live system"));