Commit 072f6c44 authored by Meg Ford's avatar Meg Ford

various files: UI fixes

parent d54c5785
......@@ -32,7 +32,7 @@
.view .toolbarSecond:hover {
border-right: rgba(255,255,255,0.45) 1px solid;
transition: 200ms linear;
}
}
.emptyGrid {
background-color: @theme_bg_color;
......
......@@ -242,12 +242,6 @@ const Listview = new Lang.Class({
} else {
// don't index files we can't play
log("File cannot be played");
let name = allFilesInfo[this.idx].fileName;
let application = Gio.Application.get_default();
let deleteFile = application.saveDir.get_child_for_display_name(name);
deleteFile.delete_async(GLib.PRIORITY_DEFAULT, null, null);
allFilesInfo.splice(this.idx, 1);
this.idx -= this.idx++;
}
if (this.idx == this.endIdx) {
......
......@@ -92,7 +92,7 @@ const MainWindow = new Lang.Class({
params = Params.fill(params, { title: GLib.get_application_name(),
hexpand: true,
vexpand: true,
default_width: 675,
default_width: 1200,
default_height: 480 });
this.parent(params);
......@@ -195,7 +195,8 @@ const MainView = new Lang.Class({
this.recordGrid.hide();
recordPipeline = RecordPipelineStates.STOPPED;
recordButton.set_sensitive(true);
this.listBox.set_selection_mode(Gtk.SelectionMode.SINGLE);
if (this.listBox != null)
this.listBox.set_selection_mode(Gtk.SelectionMode.SINGLE);
},
_formatTime: function(unformattedTime) {
......
......@@ -222,8 +222,7 @@ const _TENTH_SEC = 100000000;
},
_showErrorDialog: function(errorStrOne, errorStrTwo) {
let errorDialog = new Gtk.MessageDialog ({ modal: true,
destroy_with_parent: true,
let errorDialog = new Gtk.MessageDialog ({ destroy_with_parent: true,
buttons: Gtk.ButtonsType.OK,
message_type: Gtk.MessageType.WARNING });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment