[chronojump] Util.OpenFolder renamed OpenURL
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Util.OpenFolder renamed OpenURL
- Date: Thu, 10 Jun 2021 09:32:52 +0000 (UTC)
commit d38ecdad8bd2a5dc0ab7de2ba01748460d547aa7
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jun 10 11:29:56 2021 +0200
Util.OpenFolder renamed OpenURL
src/gui/app1/chronojump.cs | 2 +-
src/gui/app1/news.cs | 2 +-
src/gui/app1/session/main.cs | 2 +-
src/gui/dialogMessage.cs | 2 +-
src/gui/preferences.cs | 4 ++--
src/gui/splash.cs | 4 ++--
src/util.cs | 3 ++-
7 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 1727ea79a..8f9101d53 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -7037,7 +7037,7 @@ LogB.Debug("mc finished 5");
"<i>http://www.chronojump.org/multimedia.html</i>");
*/
- if(! Util.OpenFolder(System.IO.Path.GetFullPath(Util.GetManualDir())))
+ if(! Util.OpenURL (System.IO.Path.GetFullPath(Util.GetManualDir())))
new DialogMessage(Constants.MessageTypes.WARNING, "Sorry, manual folder does not
exist.");
}
diff --git a/src/gui/app1/news.cs b/src/gui/app1/news.cs
index a6d9a1fe4..83fff46c3 100644
--- a/src/gui/app1/news.cs
+++ b/src/gui/app1/news.cs
@@ -301,6 +301,6 @@ public partial class ChronoJumpWindow
string link = newsAtDB_l[currentNewsPos].GetLink(preferences.newsLanguageEs);
LogB.Information("Opening browser (r mac install) to: " + link);
- label_news_open_error.Visible = ! Util.OpenFolder(link);
+ label_news_open_error.Visible = ! Util.OpenURL (link);
}
}
diff --git a/src/gui/app1/session/main.cs b/src/gui/app1/session/main.cs
index f3b7e526a..877693203 100644
--- a/src/gui/app1/session/main.cs
+++ b/src/gui/app1/session/main.cs
@@ -244,7 +244,7 @@ public partial class ChronoJumpWindow
else if(file2.Exists)
dir = Util.GetDatabaseTempDir();
- if(! Util.OpenFolder(dir))
+ if(! Util.OpenURL (dir))
new DialogMessage(Constants.MessageTypes.WARNING,
Catalog.GetString("Error. Cannot open directory.") + "\n\n" + dir);
}
diff --git a/src/gui/dialogMessage.cs b/src/gui/dialogMessage.cs
index 9d74fb0c9..a6b1eb37b 100644
--- a/src/gui/dialogMessage.cs
+++ b/src/gui/dialogMessage.cs
@@ -134,7 +134,7 @@ public class DialogMessage
public void on_button_go_clicked (object obj, EventArgs args)
{
LogB.Information("Opening browser (r mac install) to: " + button_go_link);
- if(! Util.OpenFolder(button_go_link))
+ if(! Util.OpenURL (button_go_link))
label_message.Text = Constants.WebsiteNotFoundStr();
}
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 33f3f67a3..b61d9c473 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -1618,7 +1618,7 @@ public class PreferencesWindow
}
}
- if(! Util.OpenFolder(dir))
+ if(! Util.OpenURL (dir))
new DialogMessage(Constants.MessageTypes.WARNING,
Constants.DirectoryCannotOpenStr() + "\n\n" + dir);
}
@@ -1633,7 +1633,7 @@ public class PreferencesWindow
return;
}
- if(! Util.OpenFolder(dir))
+ if(! Util.OpenURL (dir))
new DialogMessage(Constants.MessageTypes.WARNING,
Constants.DirectoryCannotOpenStr() + "\n\n" + dir);
}
diff --git a/src/gui/splash.cs b/src/gui/splash.cs
index 454476fb9..12d63f703 100644
--- a/src/gui/splash.cs
+++ b/src/gui/splash.cs
@@ -136,7 +136,7 @@ public class SplashWindow
else if(file2.Exists)
dir = Util.GetDatabaseTempDir();
- if(! Util.OpenFolder(dir))
+ if(! Util.OpenURL (dir))
new DialogMessage(Constants.MessageTypes.WARNING,
Catalog.GetString("Error. Cannot open directory.") + "\n\n" + dir);
}
@@ -146,7 +146,7 @@ public class SplashWindow
}
private void on_button_open_docs_folder_clicked (object o, EventArgs args)
{
- if(! Util.OpenFolder(Path.GetFullPath(Util.GetManualDir())))
+ if(! Util.OpenURL (Path.GetFullPath(Util.GetManualDir())))
new DialogMessage(Constants.MessageTypes.WARNING,
"Sorry, folder does not exist." + "\n\n" +
Path.GetFullPath(Util.GetManualDir())
diff --git a/src/util.cs b/src/util.cs
index 68fbbde6c..452fe79cc 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -1536,7 +1536,8 @@ public class Util
}
}
- public static bool OpenFolder(string url)
+ //file or folder
+ public static bool OpenURL (string url)
{
LogB.Information("OpenFolder without quotes: " + url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]