~cubic-wizard/cubic/experimental

« back to all changes in this revision

Viewing changes to usr/share/cubic/cubic/choosers/copy_file_chooser.py

  • Committer: PJ Singh
  • Date: 2021-11-30 01:31:16 UTC
  • Revision ID: psingh.cubic@gmail.com-20211130013116-yspl57zt59xfr1e5
* Fixed Bug #1951662, On the Copy pages, pause to allow the user to view the results before automatically transitioning away from the page. * Fixed Bug #1951693, On the Copy pages, clicking the Cancel button may be unresponsive. * Fixed Bug #1951695, Show error status on the Copy pages. * Fixed Bug #1951715, On the Generate page, clicking the Back during update checksums may be unresponsive. * Experimental fix for issue, Cannot install Cubic in Linux Mint 19.x.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
# Imports
38
38
########################################################################
39
39
 
 
40
import os
 
41
 
40
42
from cubic.utilities import displayer
41
43
from cubic.utilities import logger
42
44
from cubic.utilities import model
66
68
    displayer.set_sensitive('window', False)
67
69
 
68
70
    if initial_file_path:
69
 
        displayer.show_file_chooser(name, initial_file_path)
 
71
        displayer.show_file_chooser(name, os.path.join(initial_file_path, '*'))
70
72
    else:
71
 
        displayer.show_file_chooser(name, model.application.user_home)
 
73
        displayer.show_file_chooser(name, os.path.join(model.application.user_home, '*'))
72
74
 
73
75
    set_callback(calback)
74
76
 
102
104
 
103
105
def on_clicked__copy_file_chooser__cancel_button(widget):
104
106
 
105
 
    logger.log_title('Clicked copy file chooser cancel button')
 
107
    logger.log_label('Clicked copy file chooser cancel button')
106
108
    close()
107
109
 
108
110
 
119
121
 
120
122
def on_clicked__copy_file_chooser__select_button(widget):
121
123
 
122
 
    logger.log_title('Clicked copy file chooser select button')
 
124
    logger.log_label('Clicked copy file chooser select button')
123
125
    uris = get_selected_uris()
124
126
    if uris:
125
127
        close()
141
143
 
142
144
def on_delete_event__copy_file_chooser(widget, event):
143
145
 
144
 
    logger.log_title('Delete copy file chooser')
 
146
    logger.log_label('Delete copy file chooser')
145
147
    close()
146
148
    return True